1
0
mirror of https://github.com/prasathmani/tinyfilemanager.git synced 2025-08-06 16:57:11 +02:00

File upload error: uppercase and strtolower() #202

This commit is contained in:
Prasath Mani
2019-07-31 09:39:02 +05:30
parent b6f552a79c
commit c18051dd5b

View File

@@ -755,7 +755,7 @@ if (!empty($_FILES) && !FM_READONLY) {
$filename = $f['file']['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;
$targetPath = $path . $ds;