jijo-paulose / gwtupload

Automatically exported from code.google.com/p/gwtupload
Other
0 stars 0 forks source link

MultiUploader does not trigger OnCancelUploaderHandler for the first uploaded file #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. create a MultiUploader widget using uibinder as MUpld in the sample: 
gwtupload-samples-0.6.3.war
2. add to the MultiUploader an OnFinishUploaderHandler whose onFinish method is 
implemented as:

    @Override
    public void onFinish(IUploader uploader) {
        System.out.println(uploader.getStatus());
        System.out.println(uploader.getInputName());
    }

2. add to the MultiUploader an OnCancelUploaderHandler whose onCancel method is 
implemented as:

    @Override
    public void onCancel(IUploader uploader) {
        System.out.println(uploader.getInputName());
    }

3. run it in either development mode or as compiled code
4. choose at least three files to upload
5. wait util all three files completed uploaded
6. click the remove button (red square with a cross) for each file item in 
whatever order

What is the expected output? What do you see instead?

It is expected to see a line with input name being printed for the first file 
item. But, it only prints for the other two file items.

If you upload new files again without refreshing the host page, the problem 
will not appear. The problem repeats only when the host page is reloaded.

What version of the product are you using? On what operating system?

0.6.3 on Windows 7

Please provide any additional information below.

As a workaround, add to the MultiUploader and OnStatusChangedHandler, and 
detect DELETED status.

Original issue reported on code.google.com by renfeng...@gmail.com on 16 Mar 2011 at 1:40

GoogleCodeExporter commented 9 years ago
Hello,

I'm unable to reproduce the problem with the 0.6.4-SNAPSHOT release, could you 
try with this?

Thanks

Original comment by manuel.carrasco.m on 22 Mar 2011 at 1:30

GoogleCodeExporter commented 9 years ago

Original comment by manuel.carrasco.m on 22 Mar 2011 at 1:30

GoogleCodeExporter commented 9 years ago
I'll try 0.6.4-SNAPSHOT

Original comment by renfeng...@gmail.com on 22 Mar 2011 at 5:11

GoogleCodeExporter commented 9 years ago
0.6.4-SNAPSHOT has not the issue

Original comment by manuel.carrasco.m on 18 Apr 2011 at 9:00