Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#10559 closed defect (fixed)

2 Issues with dojox.form.FileUploader and uploadOnChange

Reported by: Josh Trutwin Owned by: Mike Wilcox
Priority: high Milestone: 1.5
Component: DojoX Form Version: 1.4.0
Keywords: FileUploader uploadOnChange postData Cc:
Blocked By: Blocking:


The following issues only occur if uploadOnChange is set to true and you have a Flash uploader (not HTML):

If you have uploadOnChange set to true for a flash uploader, the current code calls this in _change() function:

}else ....

The problem is this._buildFileInput silently fails at this step:


because this._formNode is undefined.

I fixed it by doing this:

	if(this.uploaderType == "html"){
}else ....

More problematic though is that postData does not seem to get sent for a flash uploader with uploadOnChange true. I debuged the param from this line:


The data is being sent to the flashMovie object just fine. Set uploadOnChange to false and call upload() manually and works fine.

Tested with 1.4.0 - the first problem I noticed the code is the same in trunk.

Change History (3)

comment:1 Changed 13 years ago by Adam Peller

Owner: changed from dante to Mike Wilcox

comment:2 Changed 12 years ago by Mike Wilcox

Resolution: fixed
Status: newclosed

(In [21402]) Fixes #10559 - Fixed uploadOnChange bug. Also fixed paths in UploadFile?.php to point to tests dir.

comment:3 Changed 12 years ago by Mike Wilcox

Milestone: tbd1.5

@trutwijd: Good bug report and good suggestion for fix. Thanks.

Note: See TracTickets for help on using tickets.