Hi , I have the below code:
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
out.print(isMultipart);
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
out.print(items.isEmpty());
I did some test and found that both the isMultiplePart
and items.isEmpty()
is showing true
. The empty items is giving problems... Any possible way to solve this?