Page 1 of 1

$_FILES['BidFile']['type'] (what are the different types?)

Posted: Fri Jul 22, 2005 10:52 am
by lilsavgrad01
Hey all,

I've done all kinds of searches, but nothing comes up with what I need.

I need to make sure that people using a certain section of my website can only upload text files. I know that I need to use this:

$_FILES['BidFile']['type'] = "something/something"

to specify what type I want, but when I search that online, all I find in examples is image/gif, can anyone please either point me in the direction of a listing of all possible file types or just tell me what the wording is for a text file? meaning, .doc, .txt., and files like that

thanks in advance

Posted: Fri Jul 22, 2005 11:03 am
by wwwapu
If you are a Opera user you can find mime-types and extensions easily in Settings. Or you can take a look in http://www.webmaster-toolkit.com/mime-types.shtml
(Google search 'mime-types list'

Posted: Fri Jul 22, 2005 11:04 am
by lilsavgrad01
awesome, this was exactly what I've been looking for, thanks