Posted by Mad Hatter on 11/15/07 14:52
Hi folks
I'm a bit confused with an upload script that I've written. I want to be
able to check the file type of an upload by checking the mime type but I'm
not getting the results that I thought I should. According to what I've
read .zip files should return something like 'application/zip' or
'application/x-zip-compressed', RAR should return
'application/x-rar-compressed' but both return 'application/octet-stream'.
I'm getting the results that I expected when checking .jpg, .png of .gif
files.
I'm checking the mime type using $_FILES['userfile']['type']
Anyone throw some light on this for me?
[Back to original message]
|