Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330292 - request.getParts() returns only one part when the name is the same
Summary: request.getParts() returns only one part when the name is the same
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 8.0.0   Edit
Hardware: PC All
: P3 major (vote)
Target Milestone: 8.0.0.M2   Edit
Assignee: Jan Bartel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-15 17:03 EST by Costantino Cerbo CLA
Modified: 2010-11-15 20:29 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Costantino Cerbo CLA 2010-11-15 17:03:04 EST
If you use an "input" element of type "file" to upload multiple files (HTML 5), for example:

<form action=myapp/upload" method="post" enctype="multipart/form-data">
  <input type="file" name="files" multiple="multiple" /> 
  <input type="submit">
</form>

In the target servlet the method request#getParts() returns always only one result. That happens because the name "files" in this case is the same for each part.
Comment 1 Jan Bartel CLA 2010-11-15 20:29:40 EST
Fixed in jetty-8 rev 2511.