This commit is contained in:
Dávid Jančár 2024-05-21 17:17:16 +02:00
parent 7541734770
commit 6530d17d0b
2 changed files with 0 additions and 8 deletions

@ -1 +0,0 @@
file_uploads = On

@ -28,13 +28,6 @@ if ($_FILES["fileToUpload"]["size"] > 500000) {
$uploadOk = 0; $uploadOk = 0;
} }
// Allow certain file formats
if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg"
&& $imageFileType != "gif" ) {
echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed.";
$uploadOk = 0;
}
// Check if $uploadOk is set to 0 by an error // Check if $uploadOk is set to 0 by an error
if ($uploadOk == 0) { if ($uploadOk == 0) {
echo "Sorry, your file was not uploaded."; echo "Sorry, your file was not uploaded.";