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;