jijo-paulose / gwtupload

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

AutoSubmit duplicate submission of upload form #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure a SingleUploader with setAutoSubmit(true)
2. Upload a file

What is the expected output? What do you see instead?
I expect to find the filename in getFileName() and only one call to the 
onFinish method of the OnFinishUploaderHandler instead after the first correct 
call to onFinish the uploader field is resetted and getFileName returns an 
empty string.
The cause is the reuse() method called in the onFinishUpload() of Uploader 
class. This call reset the field and fires a new onChange event which calls 
again the onFinish.

What version of the product are you using? On what operating system?
GWTUpload 0.6.3 with FF 6.0.3 on Window 7

Please provide any additional information below.
I tried also in version 0.6.4-SNAPSHOT and there is not a double call to the 
onFinish of my handler but the getFileName returns an empty
string.

Original issue reported on code.google.com by ungar...@gmail.com on 23 Sep 2011 at 8:28

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r935.

Original comment by manuel.carrasco.m on 9 Nov 2011 at 7:16