ユーザーが pdf ファイルのアップロードのみを許可されているフォームがあります。次の struts アクションを使用してサイズとファイルの種類を制限していますが、サイズ制限のみが機能します。私が欠けているものについてのアイデアはありますか? ありがとう!
<action name="commentAction" class = "gov.mo.dnr.rat.controller.comment.CommentAction">
<interceptor-ref name="validUserStack">
<param name="fileUpload.maximumSize">5242880</param>
<param name="allowedTypes">application/pdf</param>
</interceptor-ref>
<result name="success" type="tiles">comment</result>
<result name="input" type="tiles">comment</result>
</action>