Opened 8 years ago

Closed 7 years ago

#14154 closed defect (wontfix)

Cannot set "url" in dojox.form.uploader in IE7

Reported by: ldavis Owned by: Mike Wilcox
Priority: blocker Milestone: tbd
Component: DojoX Uploader Version: 1.6.1
Keywords: uploader url Cc:
Blocked By: Blocking:

Description

Cannot dynamically update the submission url in dojox.form.uploader in IE7 using the flash plugin. Works fine in firefox.

Using format: uploader.set("url", "http://www.mySite.com");

I can set the value and ask for the value and it appears to be valid, however when you perform the actual upload it reflects the original value set during creation, not the updated url.

Change History (6)

comment:1 Changed 8 years ago by ldavis

As a temporary work around, I tried to destroy and recreate the uploader, which would set the URL. It appears you can't destroy, recreate, and reattach the uploader to the same location of a templated widget in IE7 without getting an error (works fine in IE9/firefox).

Example:

if(dojo.isIE < 8 && this.uploader)
{
	this.uploader.destroy();
	this.uploader = null;
	this.uploader = new dojox.form.Uploader(
	{
		id: (this.id + "_uploader"),
		class: "browseButton",
		label: "Select Files",
		multiple: true,
		serverTimeout: 7200000,
		url: this.submitURL,
		isDebug: true
	});
	dojo.connect(this.uploader, "onChange", this, "_checkFileList");
	dojo.connect(this.uploader, "onComplete", this, "_uploadOnComplete");
	dojo.connect(this.uploader, "onError", this, "_uploadOnError");
	
	dojo.place(this.uploader.domNode, this.subTitleNode, "after");
	return;
}

Destroying my entire widget and then recreating appears to be the only viable workaround I can see right now.

This may need to be a completely new defect and I'm happy to do that, but wanted to note it, as it was only being performed to work around the problem originally filed.

comment:2 Changed 8 years ago by Mike Wilcox

Lee, have you tried setting the url in the upload command?

uploader.upload({url:NEWURL});

comment:3 Changed 8 years ago by ldavis

Same results, still using the original URL during creation. I should also mention, I tried this with IE9 and got the same results as IE7.

I am totally willing to try any other suggestions, so please throw them my way, as we are also experiencing swf loading issue in IE9 after we destroy and recreate the widget to work around this. When I reuse the same widget (uploader in a dialog) no problems, except for this darn URL issue.

comment:4 Changed 8 years ago by ldavis

To work around this issue I ended up doing the following:

Make sure your uploader exists in a form and upon submission update the url during the submit.

uploader.submit({url:NEWURL});

With browsers other then IE you can update the URL in your setter and submit using upload.

uploader.set("url", NEWURL)

uploader.upload();

However, the reverse is not true, I could not seem to update the URL via submit for firefox for example...

comment:5 Changed 8 years ago by Colin Snover

Priority: highblocker

Bulk update of open ticket priorities.

comment:6 Changed 7 years ago by bill

Resolution: wontfix
Status: newclosed
Summary: Cannot set "url" in dojox.form.uploader in IE 7Cannot set "url" in dojox.form.uploader in IE7

Probably should be marked as wontfix since it's only IE6 & IE7, which are deprecated.

Note: See TracTickets for help on using tickets.