Opened 2 years ago

Last modified 18 months 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:

Description

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 request.post/get 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){

if(data[nm]){

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

}

} ...

...

Change History (4)

comment:1 Changed 2 years ago by dylan

Milestone: tbd1.12.1

comment:2 Changed 2 years ago by dylan

Milestone: 1.12.11.12.2

Moving 1.12.1 tickets to 1.12.2

comment:3 Changed 2 years ago by dylan

Milestone: 1.12.21.12.3

comment:4 Changed 18 months ago by dylan

Milestone: 1.12.31.14
Note: See TracTickets for help on using tickets.