Skip to content

Commit c100a3a

Browse files
authored
Correct client mime method names
1 parent 9e4d86a commit c100a3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

user_guide_src/source/libraries/uploaded_files.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@ trusted version, use ``getExtension()`` instead::
200200

201201
$ext = $file->getClientExtension();
202202

203-
**getClientType()**
203+
**getClientMimeType()**
204204

205205
Returns the mime type (mime type) of the file as provided by the client. This is NOT a trusted value. For a trusted
206-
version, use ``getType()`` instead::
206+
version, use ``getMimeType()`` instead::
207207

208-
$type = $file->getClientType();
208+
$type = $file->getClientMimeType();
209209

210210
echo $type; // image/png
211211

0 commit comments

Comments
 (0)