QUploader: Support async filter or trigger addFiles instead of addFilesToQueue in drag-and-drop flow
#18166
Unanswered
DouglasCalora
asked this question in
Ideas / Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my custom uploader, I need to process files before sending them to the uploader.
To achieve this, I had to create my own addFiles method using a native input and then call Quasar’s addFiles internally.
However, when using drag and drop, I can’t intercept the files — and I can’t use the filter prop either, since it doesn’t support async functions.
I also can’t override the addFiles method because Quasar doesn’t call it for drag-and-drop; instead, it uses addFilesToQueue.
It would be great if the filter prop could support returning a Promise for async processing before uploading, or alternatively, if
addFilescould be called inside the onDrop handler instead ofaddFilesToQueue.Beta Was this translation helpful? Give feedback.
All reactions