Jump to content

picture upload type error


tjmbc

Recommended Posts

I use the below code to make sure that users are using the proper format to upload pictures. Some users try to upload jpeg's and still get error's saying that their file is the wrong type. What am I missing?

 

if (!($userfile_type == "image/pjpeg" || $userfile_type == "image/gif"))
{
header("Location: http://www.connectingcadence.com/process/error.php?addimgck=type"); 
  	exit;
}

 

 

Link to comment
https://forums.phpfreaks.com/topic/114538-picture-upload-type-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.