mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-23 16:02:14 +02:00
File upload error: uppercase and strtolower() #202
This commit is contained in:
parent
b6f552a79c
commit
c18051dd5b
|
@ -755,7 +755,7 @@ if (!empty($_FILES) && !FM_READONLY) {
|
||||||
|
|
||||||
$filename = $f['file']['name'];
|
$filename = $f['file']['name'];
|
||||||
$tmp_name = $f['file']['tmp_name'];
|
$tmp_name = $f['file']['tmp_name'];
|
||||||
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
$ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
|
||||||
$isFileAllowed = ($allowed) ? in_array($ext, $allowed) : true;
|
$isFileAllowed = ($allowed) ? in_array($ext, $allowed) : true;
|
||||||
|
|
||||||
$targetPath = $path . $ds;
|
$targetPath = $path . $ds;
|
||||||
|
|
Loading…
Reference in a new issue