From cb583a360817eee2587add0e220db368a5b80821 Mon Sep 17 00:00:00 2001 From: Henry Snoek Date: Fri, 13 Apr 2018 12:26:00 +0200 Subject: [PATCH] [HttpFoundation] UploadedFiles deprecations This fixes https://github.com/symfony/symfony-docs/issues/9005 --- controller/upload_file.rst | 5 +++++ testing.rst | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/controller/upload_file.rst b/controller/upload_file.rst index 318175b226f..0540b0abb9f 100644 --- a/controller/upload_file.rst +++ b/controller/upload_file.rst @@ -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:: diff --git a/testing.rst b/testing.rst index 39e30902245..f94f6276e7e 100644 --- a/testing.rst +++ b/testing.rst @@ -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',