Hi all i have created 2 upload forms in my script.
I have restricted mime types as a security precaution but i cannot get it to do what i want
//check picture1 MIME type
if (!in_array($picture1_type, array('image/gif', 'image/jpeg', 'image/png')))
{
echo 'Problem: File must be an image';
die;
}
else
{
echo $picture1_name.' uploaded successfully<br/>';
}
//check picture2 MIME type
if (!in_array($picture2_type, array('image/gif', 'image/jpeg', 'image/png')))
{
echo 'Problem: File must be an image';
die;
}
else
{
echo $picture2_name.' uploaded successfully<br/>';
}
If it is not an image i do not want it to upload, but when i "die" , it will not process the rest of the script. Eg if picture1 does not upload i want it to move on to picture 2.
Anyone know how i can do this?