Opened 7 years ago

Closed 7 years ago

#15368 closed defect (invalid)

dojox.form.uploader.plugins.HTML5: formfieldname is always uploadedFiles[]

Reported by: Irfan Ahmed Owned by: Irfan Ahmed
Priority: low Milestone: 1.9
Component: DojoX Uploader Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description

I am uploading multiple files to a servlet MultipartHandlerServlet that I have written. The issue I am seeing is that all files have a common name as uploadedFiles[] in the disposition line instead uploadedFiles[0], uploadedFiles[1] and so on.

Now if I change the code in dojox/form/uploader/plugins/HTML5.js (Line 92) from

fd.append(this.name+"s[]", f);

to

fd.append(this.name+"s[" + i "]", f);

it works as expected. This seems like a bug in that the multiple file names are given the same name

Attachments (1)

patch.txt (315 bytes) - added by Irfan Ahmed 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by Irfan Ahmed

Attachment: patch.txt added

comment:1 Changed 7 years ago by dylan

Milestone: tbd1.9
Owner: changed from Mike Wilcox to Irfan Ahmed
Priority: undecidedlow
Status: newpending

This plugin was moved into Uploader. Can you please verify if this is still an issue with 1.9 alpha2?

comment:2 Changed 7 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.