更新时间:2023-12-04 20:39:46
您可以使用 "multipart/form-data"
请求.它使用与
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.