commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Tompkins (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FILEUPLOAD-182) Documentation: add simple HTML form example to fileupload user guide
Date Tue, 06 Jun 2017 04:54:18 GMT

     [ https://issues.apache.org/jira/browse/FILEUPLOAD-182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rob Tompkins closed FILEUPLOAD-182.
-----------------------------------

1.3 released.

> Documentation: add simple HTML form example to fileupload user guide
> --------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-182
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-182
>             Project: Commons FileUpload
>          Issue Type: Improvement
>    Affects Versions: 1.2.2
>         Environment: No specific environment requirements.
>            Reporter: Chris Lott
>            Assignee: Simone Tripodi
>            Priority: Minor
>              Labels: documentation, fileupload, guide, user
>             Fix For: 1.3
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message