Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
File Upload Issue with Apache Common file upload
posted 5 years ago
I am using the normal apache common file upload and using this method for file upload,
ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory()); List fileItemsList = servletFileUpload.parseRequest(request);
I am using
so the request is already parsed and when servletFileUpload tries to parse the fileItemsList is null.
So is there any way to disable struts multipart request handler or any solution for this problem.
I have read the same problem in
Ranch and the link is
Mr.Billy Hause started that topic and he found the solution but the expalanation is not clear.
How to disable struts multipart parsing?
Remove file from apache using servlet
file uploading using Jakarta file upload
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is