File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ There are some important things to consider in the code of the above controller:
199
199
#. A well-known security best practice is to never trust the input provided by
200
200
users. This also applies to the files uploaded by your visitors. The ``UploadedFile ``
201
201
class provides methods to get the original file extension
202
- (:method: `Symfony\\ Component\\ HttpFoundation\\ File\\ UploadedFile::getExtension `),
202
+ (:method: `Symfony\\ Component\\ HttpFoundation\\ File\\ UploadedFile::getClientOriginalExtension `),
203
203
the original file size (:method: `Symfony\\ Component\\ HttpFoundation\\ File\\ UploadedFile::getSize `)
204
204
and the original file name (:method: `Symfony\\ Component\\ HttpFoundation\\ File\\ UploadedFile::getClientOriginalName `).
205
205
However, they are considered *not safe * because a malicious user could tamper
You can’t perform that action at this time.
0 commit comments