Details
-
Wish
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1.1
-
None
-
None
Description
Somewhere in the documentation (User guide and/or FAQ) I think there should be at least one sentence specifying that FileUpload requires the Apache commons-io package.
From someone who spent a good 4h of frustration to learn that.
Also in the User guide:
// Check that we have a file upload request
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
isMultipartContent is Deprecated and I couldn't find a replacement for it in 1.1.1. And in the following:
// 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);
the factory is not working in this state you need to
factory.setRepository(someDir);
or use the other constructor.
otherwise thanks for an other great product (now that I can use it)
/Olle
PS Why are you not using generics?