Forum Moderators: coopster
echo $_FILES['uploaded']['type'];
To see if it recognizes the file type?
Per the documentation [us2.php.net] it's the browser that provides the content type so this may not be a reliable method, but if it works it would be an easy solution.
The only other way I know of to determine a file's exact type is to read it with ImageMagick after upload, and I'm not sure .zip or other non image types are recognized.