angular-file-upload icon indicating copy to clipboard operation
angular-file-upload copied to clipboard

There are still files in the queue when click Cancel button after selecting same file twice

Open Shanxian opened this issue 7 years ago • 6 comments

When I click Cancel, the input value is empty. But I also can upload the files.

Shanxian avatar Dec 07 '17 06:12 Shanxian

Or how to get around this problem. Please tell me. Thanks

Shanxian avatar Dec 07 '17 06:12 Shanxian

Are you select a file to upload and click cancel or drag a file to upload, and have you set autoUpload is true?

shenghou avatar Dec 20 '17 08:12 shenghou

<button class="btn btn-default btn-sm ng-binding" ng-disabled="!uploadservercert.uploader.getNotUploadedItems().length"> upload</button> <input class="btn btn-default btn-sm ng-binding" type = "file" nv-file-select="" uploader="uploadservercert.uploader"> this is my code

Shanxian avatar Dec 21 '17 06:12 Shanxian

First i select a file and then the disabled status of the button will be false, but i do not click on the upload button. Second i continue to click on the select file box again, but i do not select a file rather than click the cancel button. The content of file box will be cleared, but the disabled status of the button still is false. This is not logical. This means that getNotUploadedItems() method does not get 0 in the queue.

Shanxian avatar Dec 21 '17 06:12 Shanxian

If i use clearQueue() method before select a file, i add the same file and i use getNotUploadedItems() method gets 0 in the queue. This means that add file failure.

Shanxian avatar Dec 21 '17 06:12 Shanxian

I did not set autoUpload is true.

Shanxian avatar Dec 21 '17 06:12 Shanxian