Hiya ranchers,
I'm trying to check the mime type when uploading a file such that only ms-word files can be uploaded. This checking is being done in the validate method inside the form bean. Here's a snippet from my code :
jsp ->
form bean ->
The problem is that when using Mozilla Firefox to upload the file using the form, the content type returned by getContentType() is "application/x-download" for MS
Word documents, while whenever i use MSIE it returns a valid "application/msword". Can somebody please point out if i'm doing anything wrong or if this is just an issue with Firefox?
Thanks in advance