Opened 5 years ago

Last modified 4 years ago

#18913 new defect

dojox.form.Uploader sends formData properties which have no value

Reported by: reisner Owned by:
Priority: undecided Milestone: 1.14
Component: DojoX Form Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:


When passing object {val1:"test", val2:null, val3:undefined} to the upload method the request received at the server will contain parameters 'value2=null' and 'val3=undefined'. This is an unexpected behaviour because a will not sent such properties to the server.

This could easily be fixed in function uploadWithFormData of dojox.form.upload._HTML5.js by checking the properties before appending them to the form data:

... for(var nm in data){


fd.append(nm, data[nm]);


} ...


Change History (4)

comment:1 Changed 5 years ago by dylan

Milestone: tbd1.12.1

comment:2 Changed 5 years ago by dylan


Moving 1.12.1 tickets to 1.12.2

comment:3 Changed 5 years ago by dylan


comment:4 Changed 4 years ago by dylan

Note: See TracTickets for help on using tickets.