Skip to content

Commit 49a07f0

Browse files
committed
docs: make warning for security matter
1 parent 80689dd commit 49a07f0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

user_guide_src/source/libraries/uploaded_files.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,12 @@ Other File Info
196196

197197
**getClientExtension()**
198198

199-
Returns the original file extension, based on the file name that was uploaded. This is NOT a trusted source. For a
200-
trusted version, use ``guessExtension()`` instead::
199+
Returns the original file extension, based on the file name that was uploaded::
201200

202201
$ext = $file->getClientExtension();
203202

203+
.. warning:: This is NOT a trusted source. For a trusted version, use ``guessExtension()`` instead.
204+
204205
**getClientMimeType()**
205206

206207
Returns the mime type (mime type) of the file as provided by the client. This is NOT a trusted value. For a trusted

0 commit comments

Comments
 (0)