8000 php file upload bug fix 2 #1122 · Veyselxan/laravel-filemanager@98473bd · GitHub
[go: up one dir, main page]

Skip to content

Commit 98473bd

Browse files
authored
php file upload bug fix 2 UniSharp#1122
1 parent 8074415 commit 98473bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LfmUploadValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function isNotExcutable()
7878
public function mimeTypeIsValid($available_mime_types)
7979
{
8080
$mimetype = $this->file->getMimeType();
81-
$extension = $this->file->getClientOriginalExtension();
81+
$extension = $this->file->extension();
8282

8383
if (false === in_array($mimetype, $available_mime_types) || false === in_array($extension, array_keys($available_mime_types))) {
8484
throw new InvalidMimeTypeException($mimetype);

0 commit comments

Comments
 (0)
0