Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-114

Documentation: dependency on commons-io and other things

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: None
    • Labels:
      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?

        Attachments

          Activity

            People

            • Assignee:
              bayard Henri Yandell
              Reporter:
              osundblad Olle Sundblad
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: