mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2025-08-07 17:28:20 +02:00
File upload error: uppercase and strtolower() #202
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user