Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330292

Summary: request.getParts() returns only one part when the name is the same
Product: [RT] Jetty Reporter: Costantino Cerbo <c.cerbo>
Component: serverAssignee: Jan Bartel <janb>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: c.cerbo, janb, jetty-inbox
Version: 8.0.0   
Target Milestone: 8.0.0.M2   
Hardware: PC   
OS: All   
Whiteboard:

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.