angular-file-upload
angular-file-upload copied to clipboard
There are still files in the queue when click Cancel button after selecting same file twice
When I click Cancel, the input value is empty. But I also can upload the files.
Or how to get around this problem. Please tell me. Thanks
Are you select a file to upload and click cancel or drag a file to upload, and have you set autoUpload is true?
<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
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.
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.
I did not set autoUpload is true.