Multiple file in queue if single file type is selected #1051
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When i create single file type input and console the uploader object ( console.log(this.uploader.queue) ) it shows are previous selected file with new file. is there any way to select only one file and refresh or reset the queue to hold on last selected file?
Same here. And limiting queue size to 1 in options makes it only accept first file choice. Later choices are ignored.
I think it helps. I couldn't find another way to solve this)
Hi @jasonvuriker many thanks for you suggestion: it works greatly unless the user hits cancel instead of selecting a file: in this case the queue is reset (click) BUT not populated (cancel).
alternative approach: upload only the last item (if any) selected by the user.
To achieve this: let the user select multiple files (queueLimit unset in the configuration to avoid the issue stated by @sebastian-zarzycki-es ) BUT instead of uploadAll() use:
HTH