Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitabda29b

Browse files
#11212 [HttpFoundation] Added a switch to delete file after the response is send
1 parent855f959 commitabda29b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎components/http_foundation/introduction.rst‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,13 @@ You can still set the ``Content-Type`` of the sent file, or change its ``Content
515515
'filename.txt'
516516
);
517517

518+
..versionadded::2.6
519+
The ``deleteFileAfterSend()`` method was introduced in Symfony 2.6.
520+
521+
It is possible to delete the file after the request is send with the
522+
:method:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse::deleteFileAfterSend` method.
523+
Please note that this will not work when the ``X-Sendfile`` header is set.
524+
518525
.. _component-http-foundation-json-response:
519526

520527
Creating a JSON Response

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp