Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support asynchronous input-filter #455

Open
jacobg opened this issue Nov 22, 2023 · 0 comments
Open

Support asynchronous input-filter #455

jacobg opened this issue Nov 22, 2023 · 0 comments

Comments

@jacobg
Copy link

jacobg commented Nov 22, 2023

Currently this component relies on the @input-filter event handler synchronously calling prevent() to reject a file from being dropped on the component. The limitation of this approach is that this filter handler will not be able to asynchronously read the file to do advanced filtering such as checking for prohibited file magic numbers:
https://developer.mozilla.org/en-US/docs/Web/API/Blob/arrayBuffer

Please enhance this component to support asynchronous input filters that return a promise.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant