scratch
/upload-files.php |
---|
@@ -26,8 +26,10 @@ |
#### If the extension is not allowed then change it to a text extension. |
if (!isset($fileExtension) || |
!in_array(strtoupper($fileExtension), |
array_map('strtoupper', $ALLOWED_FILE_EXTENSIONS))) |
$fileExtension = 'txt'; |
array_map('strtoupper', $ALLOWED_FILE_EXTENSIONS))) { |
header("HTTP/1.1 500 Internal Server Error", true, 500); |
return; |
} |
#### Hash filename. |
$file = strtolower( |