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.";