What are the "allowedTypes" for .rar file (interceptor "fileUpload") in struts2?
Posted
by Tr.Crab
on Stack Overflow
See other posts from Stack Overflow
or by Tr.Crab
Published on 2010-05-10T01:23:15Z
Indexed on
2010/05/10
1:28 UTC
Read the original article
Hit count: 553
struts2
|fileupload
<package name="my-default" extends="struts-default" namespace="/">
<interceptors>
<interceptor-stack name="globalInterceptor">
.....
<interceptor-ref name="fileUpload">
<param name="maximumSize">1048576</param>
<param name="allowedTypes">application/x-rar-compressed</param>
</interceptor-ref>
.....
</interceptor-stack>
</interceptors>
....
</struts>
I want to mine type for .rar file in struts2 which interceptor "fileUpload", but when I define "allowedTypes" which "application/x-rar-compressed", It doesn't work.
How can I resolve this?
© Stack Overflow or respective owner