Opened 4 years ago
Last modified 3 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: |
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 4 years ago by
Milestone: | tbd → 1.12.1 |
---|
comment:2 Changed 4 years ago by
Milestone: | 1.12.1 → 1.12.2 |
---|
comment:3 Changed 4 years ago by
Milestone: | 1.12.2 → 1.12.3 |
---|
comment:4 Changed 3 years ago by
Milestone: | 1.12.3 → 1.14 |
---|
Note: See
TracTickets for help on using
tickets.
Moving 1.12.1 tickets to 1.12.2