From 6530d17d0bc77226edee5c0206e922c2b3fd7ada Mon Sep 17 00:00:00 2001 From: Uncledaviss Date: Tue, 21 May 2024 17:17:16 +0200 Subject: [PATCH] up --- php.ini | 1 - upload.php | 7 ------- 2 files changed, 8 deletions(-) delete mode 100644 php.ini diff --git a/php.ini b/php.ini deleted file mode 100644 index 75b8e87..0000000 --- a/php.ini +++ /dev/null @@ -1 +0,0 @@ -file_uploads = On \ No newline at end of file diff --git a/upload.php b/upload.php index 8814d3d..a1c03ee 100644 --- a/upload.php +++ b/upload.php @@ -28,13 +28,6 @@ if ($_FILES["fileToUpload"]["size"] > 500000) { $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 if ($uploadOk == 0) { echo "Sorry, your file was not uploaded.";