Skip to content

Commit 80ba002

Browse files
committed
minor #9593 [HttpFoundation] UploadedFiles deprecations (snoek09)
This PR was merged into the master branch. Discussion ---------- [HttpFoundation] UploadedFiles deprecations This fixes #9005 Commits ------- cb583a3 [HttpFoundation] UploadedFiles deprecations
2 parents 4941df7 + cb583a3 commit 80ba002

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

controller/upload_file.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ There are some important things to consider in the code of the above controller:
195195
use the :method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::guessExtension`
196196
method to let Symfony guess the right extension according to the file MIME type;
197197

198+
.. versionadded:: 4.1
199+
The :method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getClientSize`
200+
method was deprecated in Symfony 4.1 and will be removed in Symfony 5.0.
201+
Use ``getSize()`` instead.
202+
198203
You can use the following code to link to the PDF brochure of a product:
199204

200205
.. configuration-block::

testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ or perform more complex requests. Some useful examples::
416416
'/path/to/photo.jpg',
417417
'photo.jpg',
418418
'image/jpeg',
419-
123
419+
null
420420
);
421421
$client->request(
422422
'POST',

0 commit comments

Comments
 (0)