10000 [HttpFoundation] UploadedFiles deprecations by snoek09 · Pull Request #9593 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[HttpFoundation] UploadedFiles deprecations #9593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions controller/upload_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ There are some important things to consider in the code of the above controller:
use the :method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::guessExtension`
method to let Symfony guess the right extension according to the file MIME type;

.. versionadded:: 4.1
The :method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getClientSize`
method was deprecated in Symfony 4.1 and will be removed in Symfony 5.0.
Use ``getSize()`` instead.

You can use the following code to link to the PDF brochure of a product:

.. configuration-block::
Expand Down
2 changes: 1 addition & 1 deletion testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ or perform more complex requests. Some useful examples::
'/path/to/photo.jpg',
'photo.jpg',
'image/jpeg',
123
null
);
$client->request(
'POST',
Expand Down
0