We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80689dd commit 49a07f0Copy full SHA for 49a07f0
1 file changed
user_guide_src/source/libraries/uploaded_files.rst
@@ -196,11 +196,12 @@ Other File Info
196
197
**getClientExtension()**
198
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::
+Returns the original file extension, based on the file name that was uploaded::
201
202
$ext = $file->getClientExtension();
203
+.. warning:: This is NOT a trusted source. For a trusted version, use ``guessExtension()`` instead.
204
+
205
**getClientMimeType()**
206
207
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