Hi,
I am facing some problems while uploading a file using Struts' FormFile object. I want to allow user to upload only .pdf files. For that I am
comparing the ContentType of the file being uploaded using FormFile's
getContentType() method.
The problem is , when users uploading their pdf files using FireFox 3.0.5. it did not recognize them as a pdf. It worked fine as soon as the users switch the browser to IE. More when this I am using FireFox 3.0.5. and can upload the same users pdf files with no problem.

So, my question is, is there some setting in the browser that is making the FormFile object to send wrong mime type or this is really a problem? And if it is related to browser setting, what setting should users change?
Please reply.
Thank you in advance,
Tatiyana.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to