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

Add a files-only mode #66

Open
VP- opened this issue Jun 14, 2021 · 4 comments
Open

Add a files-only mode #66

VP- opened this issue Jun 14, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@VP-
Copy link

VP- commented Jun 14, 2021

Currently, the file picker supports variations where only folders or both files and folders can be selected. What is missing is a mode where only files can be selected.

@LukasHirt
Copy link
Collaborator

Would this be limited to any file? I am thinking if it would make sense to introduce an array of enabled mime types but that would probably be too overengineered?

@LukasHirt LukasHirt added the enhancement New feature or request label Jun 15, 2021
@VP-
Copy link
Author

VP- commented Jun 15, 2021

My use case is just any files, but as long as the list of MIME types would allow wildcards, then that would work, too.

How would an array be passed to the web component?

@LukasHirt
Copy link
Collaborator

How would an array be passed to the web component?

It could be a string * or png,jpeg, which we would then just split into an array inside of the component.

@VP-
Copy link
Author

VP- commented Jun 15, 2021

Works for me.

PS: Those are file extensions, not MIME types. That's mostly important for the documentation later, otherwise people will try using image/png or video/*.

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

No branches or pull requests

2 participants