Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#10920 closed defect (fixed)

Small patch to manually show initially hidden file Uploader

Reported by: Josh Trutwin Owned by: Mike Wilcox
Priority: high Milestone: 1.6
Component: DojoX Uploader Version: 1.4.2
Keywords: Cc:
Blocked By: Blocking:


Discussed this with Mike Wilcox - added a small patch for when you need to manually show an initially hidden flash fileUploader. This could happen if your file uploader was in a hidden div/table, etc and not a dijit with an "onShow" method such as a tab container.

In addition talked about having a _created boolean which would prevent the creation code being called twice which leads to re-initialization issues when going to a tab with an uploader, selecting a file, then going to a different tab and returning to the uploader tab. But I was unable to correctly implement something like this so not included in patch file.

Attachments (1)

fileUploader.patch (1.3 KB) - added by Josh Trutwin 12 years ago.
saving the value of the createMethod so can be called manually with ease

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by Josh Trutwin

Attachment: fileUploader.patch added

saving the value of the createMethod so can be called manually with ease

comment:1 Changed 12 years ago by Josh Trutwin

One thing that's a little goofy is that the function name is a string value so have to call with something like:

w = dijit.byId('myUploader'); w[w.createMethod]();

Maybe store the method itself so can call w.createMethod(); ?

comment:2 Changed 11 years ago by Mike Wilcox

Resolution: fixed
Status: newclosed

I can't remember if I added this patch or not, I'm sorry. But this is no longer supported and suggested you use dojox.form.Uploader.

comment:3 Changed 11 years ago by dante

Milestone: tbd1.6

don't close ticked in tbd

Note: See TracTickets for help on using tickets.