Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-121

File upload is not getting part name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta21
    • None
    • None
    • None

      file-upload sample allows to upload a file and writes it to /tmp
      directory as:

      for (Part part : request.getParts()) {
      fileName = part.getSubmittedFileName();
      part.write(fileName);
      }

      part.write() is not throwing any exception but not even writing the file.

      Complete sample is at:

      https://github.com/arun-gupta/javaee7-samples/tree/master/servlet/file-upload

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              arungupta_jira Arun Gupta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: