google-code-export / gwtupload

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

uploader.reset() not working #161

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

uploader.reset() not working

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

uploader.reset() should remove the current uploader from the main panel as 
mentioned in method api. 

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

Please provide any additional information below.

defaultUploader.addOnChangeUploadHandler(new OnChangeUploaderHandler()
                {

                        public void onChange(IUploader uploader)
                        {
                                if (selectedFileList.contains(uploader.getFileName()))
                                {
                                        uploader.cancel();
                                        uploader.reset();// (This is not working. I want to remove the current uploader from the main panel as i have cancelled upload)
                                }
                                else
                                {
                                        selectedFileList.add(uploader.getFileName());   
                                }

                        }
                });

Original issue reported on code.google.com by sanketun...@gmail.com on 7 Aug 2012 at 11:58

GoogleCodeExporter commented 9 years ago
This is not a bug, if you want to clear the multiuploader panel you should call 
the reset method of the multiuploader.
[...]
  uploader.cancel();
  defaultUploader.reset();
[...]

Original comment by manuel.carrasco.m on 3 Dec 2012 at 12:43