Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-487

Multiple file upload not possible due to MultiPartRequestHandler limitation?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.8, Nightly Build
    • 1.3.9
    • Core
    • None
    • Operating System: other
      Platform: Other
    • 6847

    Description

      File upload of a single file with Struts seems to work OK. But it fails for multiple files. Note: I
      mean 1 <INPUT TYPE="FILE"> tag where the user selects multiple files (Opera and IE allow this),
      not multiple <INPUT TYPE="FILE"> tags!

      The MultipartRequestHandler doesn't seem to
      support this, since it getFileElements() returns FormFiles in a hashtable, and cannot
      therefore handle more than 1 FormFile for each input name.

      The only way around this is to put
      multiple INPUT tags on the page, which is a problem when I want to allow the user to upload a lot of
      (small) files.

      TIA

      Marcel Maré

      Attachments

        Issue Links

          Activity

            People

              germuska Joseph Lad Germuska
              mjmare@webtothemax.com Marcel
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: