Hi,
I'm using stripes 1.5 to develop one online submission system, and the user
will upload their paper and other document as one rar file.
The problem is that in the action bean, I must validate the type of the file
user try to upload, but I invoke the getContentType()  method of FileBean, I
just get application/octet-stream.
I have add below code into the web.xml of tomcat,
<mime-mapping>
<extension>rar</extension>
<mime-type>application/rar</mime-type>
</mime-mapping>
What I can do to get the correct contentType?
Thx!

-- 
View this message in context: 
http://www.nabble.com/problem-of-Rar-file-uploading-tp22019914p22019914.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to