Knowledgebase
PHP $_FILES filetype
Posted by Uncle Mad, 09-22-2007, 02:06 AM | Hi
I'm trying to write a script with uploading function.
Where can i find a list of all the valid naming conventions of $_FILE filetype? e.g. image/x-jpeg, application/msword etc.
Help, thanks.
|
Posted by Jatinder, 09-22-2007, 02:14 AM | Here are most of them :
|
Posted by Uncle Mad, 09-22-2007, 10:23 AM | You're great!
I just wonder.
If i allow octet-stream (supposedly for msword), will i be allowing exe (undesirable) as well? But if i just use msword, will there be any occurances where doc files don't work?
Reason why i asked this is that i saw from somewhere, where someone said that 70% of his msword files turned out to be msword, while the rest echoes octet-stream.
Yes?
|
|
Add to Favourites
Print this Article |
Also Read