How do you go about verifying the type of an uploaded file reliably without using the extension? I\'m guessing that you have to examine the header / read some of the bytes,
Wotsit is a good resource for finding out the magic numbers for various file types.