<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>
我想在Struts2其中攔截 「的FileUpload」 挖掘類型.rar程序文件,但是當我定義 「allowedTypes」 「應用程序/ x-RAR壓縮」,這不是哪個沒有工作。什麼是struts2中.rar文件(攔截器「fileUpload」)的「allowedTypes」?
我該如何解決這個問題?
爲年幫助:)謝謝 – m0z4rt 2010-05-14 03:42:13