Skip to content
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