Jump to content

Uploading A File In A Form


BigAl75
 Share

Recommended Posts

I found this:

if ((($_FILES["file"]["type"] == "image/gif")|| ($_FILES["file"]["type"] == "image/jpeg")|| ($_FILES["file"]["type"] == "image/pjpeg"))

but what if I want to allow .pdf & .doc files. What would I put in place of the "image/ext". I'm guessing it's not "image/pdf".

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...