Commons FileUpload
  1. Commons FileUpload
  2. FILEUPLOAD-182

Documentation: add simple HTML form example to fileupload user guide

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.3
    • Environment:

      No specific environment requirements.

      Description

      The FileUpload user guide at http://commons.apache.org/fileupload/using.html is very helpful. I suggest extending it with a tiny example of a HTML form that will work suitably. I left off the "enctype" attribute on my form so naturally nothing worked properly, the call (from the user guide) to ServletFileUpload.isMultipartContent(request) always returned false. A web search gave me the answer; e.g., here in the Oracle/Sun forum http://72.5.124.102/thread.jspa?messageID=10697258

      All that's needed is a tiny example like this:

      <form action="upload_file.jsp" method="post" enctype="multipart/form-data" name="form1" id="form1">
      Choose file: <input name="file" type="file" id="file"/>
      <input type="submit" name="Submit" value="Submit files"/>
      </form>

      Thanks for listening.

        Activity

        Hide
        Simone Tripodi added a comment -

        resolved in trunk at r1453754, doc will be online as soon as the site will be redeployed

        Show
        Simone Tripodi added a comment - resolved in trunk at r1453754, doc will be online as soon as the site will be redeployed

          People

          • Assignee:
            Simone Tripodi
            Reporter:
            Chris Lott
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 5m
              5m
              Remaining:
              Remaining Estimate - 5m
              5m
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development