I use jmimemagic (http://sourceforge.net/projects/jmimemagic/) for that.
Works nice.
Mark wrote:
I would suggest using a library that would check the file type of the
uploaded file. This will give you a better idea of what the file is.
It is the job of the browser to fill in this data, and based on the
browser, you can get differing values on the server side.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]