Skip to content

Commit cb583a3

Browse files
author
Henry Snoek
committed
[HttpFoundation] UploadedFiles deprecations
This fixes #9005
1 parent 8f8ddff commit cb583a3

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)