Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#14085 closed defect (wontfix)

dojo 1.6 Fileuploader doesn't work in tabcontainer

Reported by: skquentin Owned by: Mike Wilcox
Priority: high Milestone: tbd
Component: DojoX Form Version: 1.6.1
Keywords: fileuploader uploader Cc:
Blocked By: Blocking:

Description

Hi: I used fileuploader in tabcontainer, it works well in dojo 1.5, when I switch to dojo 1.6.1, it doesn't work. I find the comments from 23544(Fixes #11039 - removed detection of hidden widgets. Note that the FileUploader?? will no longer function without help in a node or widget that is initially hidden. Suggested to use dojox.form.Uploader from here out). I try to replace fileuploader with Uploader, but the uploader doesn't support some operations such as remove the selected file, what should I do?

Change History (9)

comment:1 Changed 8 years ago by Adam Peller

Component: GeneralDojoX Form
Owner: set to Mike Wilcox

comment:2 Changed 8 years ago by Adam Peller

It may not be possible to respond to this without an example. If one cannot be cited in the tests directory, you'll need to sign a CLA and submit a test.

comment:3 Changed 8 years ago by Adam Peller

Priority: highnormal

comment:4 Changed 8 years ago by Mike Wilcox

Resolution: wontfix
Status: newclosed

The workaround is to not put the FileUploader? *in* the TabContainer?, but to float it *above* the TabContainer?. Connect to that tab's hide/show, and move the FileUploader? off the screen with style=left:-2000px, or something similar. You cant hide it, that resets the SWF.

comment:5 in reply to:  4 Changed 8 years ago by skquentin

Resolution: wontfix
Status: closedreopened

Replying to mwilcox:

The workaround is to not put the FileUploader? *in* the TabContainer?, but to float it *above* the TabContainer?. Connect to that tab's hide/show, and move the FileUploader? off the screen with style=left:-2000px, or something similar. You cant hide it, that resets the SWF.

Sorry I forgot to hightlight that I use html style, not use flex. this fileuploader not only exists in tab container but also in dialog widget, would you please describe it in detail how to walk around it? Thanks a lot.

comment:6 Changed 8 years ago by Mike Wilcox

Resolution: wontfix
Status: reopenedclosed

It was too difficult and sometimes impossible to predict how devs would use FileUploader?. It worked at one point in Tabs and Dialog boxes, and then a Dojo revision broke it. I'd get that to work and then someone would want to implement it in a slightly different way that broke it again.

The problems you are experiencing are exactly why I abandoned FileUploader? and created Uploader. I'm sorry, but it's no longer supported, because I couldn't get it to do what you are trying to do.

My suggestion is to take it out of the Tabs and Dialog boxes.

You can continue to leave comments here but please don't reopen the ticket. Please make suggestions for Uploader instead and those tickets will be honored.

comment:7 in reply to:  6 Changed 8 years ago by skquentin

Replying to mwilcox:

It was too difficult and sometimes impossible to predict how devs would use FileUploader?. It worked at one point in Tabs and Dialog boxes, and then a Dojo revision broke it. I'd get that to work and then someone would want to implement it in a slightly different way that broke it again.

The problems you are experiencing are exactly why I abandoned FileUploader? and created Uploader. I'm sorry, but it's no longer supported, because I couldn't get it to do what you are trying to do.

My suggestion is to take it out of the Tabs and Dialog boxes.

You can continue to leave comments here but please don't reopen the ticket. Please make suggestions for Uploader instead and those tickets will be honored.

Hi mwilcox: Thanks for your repley, I once tried to use uploader to replace fileuploader, but I found there is no such function to remove selected files from uploader, but I need the function, what should I do.(in my application, when user selcteds file, the file will list in a datagrid, then user can delete file from the datagrid, if there is no delete function in Uploader, I can't replace fileuploader with Uploader, what should I do, do you have any plan to add "delete" function in Uploader? Thanks a lot.

comment:8 Changed 8 years ago by Mike Wilcox

Yes, a delete function is something I had planned on doing.

comment:9 Changed 8 years ago by Adam Peller

I suggest creating a new enhancement ticket for that, xref here

Note: See TracTickets for help on using tickets.