up
This commit is contained in:
parent
7541734770
commit
6530d17d0b
1
php.ini
1
php.ini
@ -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.";
|
||||||
|
Loading…
Reference in New Issue
Block a user