views:

33

answers:

1

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?

A: 

Problem solved. Thanks

Roy
This answer is in fact worthless. You should have posted the solution as an answer or just simply delete the question if it doesn't have any voted answers :)
BalusC