Hey guys, i have an upload script in my administration area and as a safety precaution i want to restrict files that can be uploaded.
anyways here is my source
if ($picture1_type != 'image/gif')
{
echo 'Problem: File must be an image';
exit;
}
When i try to upload jpeg/jpg or png files it will not let me 🙁
also when i chose to upload nothing, it says "File must be an image" i presume this is because of my mime restrictions.
Is there a way so it is possible to upload jpegs pngs etc and also have the option of uploading nothing at all?