bdshadow / gwtupload

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

MultiUploader is not creating a new uploader when number of uploaded files falls back below limit #154

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Upload files using MultiUploader until maximum file limit is reached.
2.Delete a file.
3.MultiUploader doesn't let you upload another file even though the number of 
uploaded files is below the limit.

What is the expected output? What do you see instead?
When an uploaded file is deleted, the MultiUploader should create another 
Uploader and display it.

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

Please provide any additional information below.

Original issue reported on code.google.com by cengiz.o...@studyo3k.com on 21 Jun 2012 at 7:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Proposed Solution:

MultiUploader.java
...
IUploader.OnStatusChangedHandler statusChangeHandler = new 
IUploader.OnStatusChangedHandler() {
    public void onStatusChanged(IUploader uploader) {
      Uploader u = (Uploader) uploader;
      if (u.getStatus() == Status.CHANGED) {
        ...
      }
      ...
      else if (u.getStatus() == Status.DELETED) {  // add this case
        // check if we're back below the limit
        if (getNonErroneousUploads() < maximumFiles) {
          newUploaderInstance();
        }
      }
      ...
      } else {
        ...
      }
    }
  };

Original comment by cengiz.o...@studyo3k.com on 21 Jun 2012 at 7:30

GoogleCodeExporter commented 8 years ago

Original comment by manuel.carrasco.m on 3 Dec 2012 at 7:47

GoogleCodeExporter commented 8 years ago
Release 0.6.5 has not the issue, please update to it.

Thanks for reporting

Original comment by manuel.carrasco.m on 3 Dec 2012 at 7:56