且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用blueimp jQuery文件上传:Struts 2中的文件上传结果为空,文件项为空

更新时间:2023-12-04 20:39:46

您可以使用 "multipart/form-data" 请求.它使用与 commons-fileupload 实现.apache.org/maven/struts2-core/apidocs/org/apache/struts2/dispatcher/multipart/MultiPartRequestWrapper.html"rel =" nofollow noreferrer> MultipartRequestWrapper 在Struts2调度程序的准备操作中进行.有关如何通过示例上传文件的更多信息,您可以在此处找到.

You may use fileUpload interceptor to parse your "multipart/form-data" requests. It uses the same commons-fileupload implementation wrapped by the MultipartRequestWrapper in prepare operations by the Struts2 dispatcher. More about how to file upload with examples you could find here.