ServletFileUpload#parseRequest(request) returns an empty list

前端 未结 5 1439
夕颜
夕颜 2020-12-05 20:57

I have a client application in Android which uses HttpURLConnection to send files to the server. The server uses the Apache Commons FileUpload API to parse the

5条回答
  •  感动是毒
    2020-12-05 21:55

    I had this same problem after trying I find that it was incompatibility of libraries, library apache server with fileupload library, so I remove the library and imported from the library server Apache.

    imports:
    import org.apache.tomcat.util.http.fileupload.FileItem;
    import org.apache.tomcat.util.http.fileupload.disk.DiskFileItemFactory;
    import org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload;
    

    sorry my english

提交回复
热议问题