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

Avoid premature initialisation of UploaderEl.uploader #2762

Open
alansemenov opened this issue Sep 14, 2022 · 0 comments
Open

Avoid premature initialisation of UploaderEl.uploader #2762

alansemenov opened this issue Sep 14, 2022 · 0 comments
Assignees

Comments

@alansemenov
Copy link
Member

uploader object is now initialised instantly when an instance of UploaderEl is created. This triggers, among other things, a request to fetch allowed mime types (even if the uploader will never be used). Refactor UploaderEl to configure mime types (or uploader in general) only when a) the upload button is clicked, b) a file is dropped onto the DnD area.

@alansemenov alansemenov self-assigned this Sep 14, 2022
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