scratch
/index.html |
@@ -53,7 +53,7 @@ |
|
<div class="content"> |
<h2>Welcome</h2> |
sdf |
TBA |
</div> |
|
</div> <!-- /container --> |
/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( |