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

File can't be reselected after removing from the queue (Chrome, IE)

Open sbagriantsev opened this issue 12 years ago • 7 comments

Hello,

There seems to be an issue with reselecting same files in Chrome and IE browsers.

Steps to reproduce:

  1. Go to http://nervgh.github.io/pages/angular-file-upload/examples/simple/
  2. Select file with Single select.
  3. Remove it from the queue using remove button
  4. Try to select the same file once again.

Result: File is not added to the queue. Expected result: File is added to the queue. Browsers: Chrome Version 38, IE 11

If to add another file and then try initial file one more time it works, but this is not correct user experience.

Issue is not reproducible in Firefox.

Sorry if this is a duplicate.

Thanks, Stanislav

sbagriantsev avatar Nov 07 '14 10:11 sbagriantsev

yes, you're right, it dosn't add them, but i think thats you must to clean queue in onCompleteItem callback, because in this example it dont exist, i'm not sur !!

rboughani avatar Nov 07 '14 13:11 rboughani

use this http://nervgh.github.io/pages/angular-file-upload/examples/image-preview/

rboughani avatar Nov 07 '14 13:11 rboughani

@darkmanAmazigh thanks for the answer, but example you mentioned uses multiple files uploader. It works on the first example as well. I think it is possible to use multiple file uploader and limit queue to 1 item but this is a workaround.

Single file uploader has different behavior across different browsers so the question is still open.

sbagriantsev avatar Nov 07 '14 16:11 sbagriantsev

I am having this issues as well. Thank you for the suggested workaround of using multiple uploader with queue limit to one @sbagriantsev

maiamachine avatar Nov 20 '14 05:11 maiamachine

I created a pull request for this, https://github.com/nervgh/angular-file-upload/pull/357

raoulus avatar Feb 16 '15 12:02 raoulus

use fileuploader.clearQueue();

woaichiji avatar May 11 '15 04:05 woaichiji

https://github.com/nervgh/angular-file-upload/wiki/FAQ#4-no-file-chosen-or-re-add-same-file

nervgh avatar Oct 27 '15 10:10 nervgh