简体   繁体   English

Fileupload拦截器未在Struts2 Maven中上传任何文件

[英]Fileupload Interceptor not uploading any file in Struts2 Maven

I am developing an application in Struts2 in maven. 我正在Maven的Struts2中开发应用程序。 I have used fileupload interceptor and allowtypes as image/jpeg but when I am trying to upload the jpeg file it gives content type not allowed . 我已经使用fileupload interceptorallowtypes as image/jpeg但是当我尝试上传jpeg文件时,它给出了content type not allowed Do I need to add any jar dependency in my pom.xml? 我是否需要在pom.xml中添加任何jar依赖项?

嗯...尝试使用image/jpeg,image/pjpeg http://www.webmaster-toolkit.com/mime-types.shtml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM