Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="index.php" method="POST" enctype="multipart/form-data">
- Choose a file to upload: <input name="uploadedfile" type="file" />
- <input type="submit" value="Upload File" name="uploadedfile" />
- </form>
- $imageinfo = getimagesize($_FILES['uploadedfile']['tmp_name']);
- if($imageinfo['mime'] != 'image/gif' && $imageinfo['mime'] != 'image/gif') {
- echo "Sorry, we only accepg GIF images";
- exit;
- }
- ; Maximum allowed size for uploaded files.
- ; http://php.net/upload-max-filesize
- upload_max_filesize = 2000M
Add Comment
Please, Sign In to add comment