Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#11974 closed defect (fixed)

dojo 1.5 fileuploader problem

Reported by: skquentin Owned by: Mike Wilcox
Priority: high Milestone: 1.6
Component: DojoX Uploader Version: 1.5
Keywords: fileuploader Cc:
Blocked By: Blocking:

Description

env: firefox 3.6. Description: Try to use fileuploader to uploader files to server(tomcat). FileUploader? runs in MultipleFiles? and HTML mode. I placed two buttons on the page, one is "upload", the other is "select". I place the fileuploader widget on a popup(dojo dialog). When user clicks "select" button the dialog showup, user uses the fileuploader to select a file. after selecting, user closes the dialog. Then click "upload" button to upload the files. It works, but if successfully upload the files to server, the fileuploader widget doesn't work anymore. That means after uploading, when user clicks "select" button to display the dialog, the fileuploader widget doesn't response to user's click event, it seems been "disabled", but the "disabled" property is false. If I don't put the fileuplader in the dialog, it works. Don't know why, want some help thanks a lot.

Attachments (1)

fileuploader_problem.zip (23.1 KB) - added by skquentin 9 years ago.
I want to uplaod the whole workspace, but the size is over 256K, so I just upload the source code. If you want the whole workspace(about 30M), please contact my, Email:sk.quentin@gmail.com.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 9 years ago by Adam Peller

please provide a test case to reproduce the problem

Changed 9 years ago by skquentin

Attachment: fileuploader_problem.zip added

I want to uplaod the whole workspace, but the size is over 256K, so I just upload the source code. If you want the whole workspace(about 30M), please contact my, Email:sk.quentin@gmail.com.

comment:2 Changed 9 years ago by skquentin

Hope you help me out, thanks a lot.

comment:3 Changed 9 years ago by Mike Wilcox

@skquentin

I'm sorry, but the test is not adequate. We need to see as little information as possible, not as much as possible. I don't run Java, so I can't run your test. It should be one simple page. The actual act of uploading doesn't have to work - if that's the problem that would be a Java issue anyway. A simple, one page test may also help you determine what the problem is.

Is Firebug displaying any errors? Do you have isDebug:true on the FileUploader?? When it's not working, use Firebug to inspect the DOM - is the uploader in the proper position or is something out of place?

comment:4 Changed 9 years ago by skquentin

It should be the problem of putting the widget in the dojo dialog, the source code I attached previously, if you revmoe <div id="updateAttachDialog" dojoType="dijit.Dialog" title="update file" style="width:30%!important; height:30%!important;">

form UpdateAttachDlg?.jsp, it works well, but if the dialog added, it doesn't work.

comment:5 Changed 9 years ago by Mike Wilcox

@skquentin

The FileUploader? doesn't work very well in a Dialog box, and some new changes to Dijit make it not work at all.

The workaround is kind of clunky. I'd recommend that you recreate the uploader programmatically every time you open the dialog.

Sorry, I know that's not ideal, but its the best I can do without a complete rewrite.

comment:6 Changed 9 years ago by Mike Wilcox

Resolution: fixed
Status: newclosed

There is a new widget, dojox.form.Uploader that replaces FileUploader? and solves this problem.

comment:7 Changed 9 years ago by bill

Milestone: tbd1.6

bulk update: bugs fixed in past few months, presumably milestone is 1.6

Note: See TracTickets for help on using tickets.