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

adding deny option to filepicker #119

Merged
merged 1 commit into from
Mar 31, 2021
Merged

Conversation

ricardo118
Copy link
Collaborator

This option is the reverse of accept.

This is useful to remove the item.json from the filepicker without having to set any accepted.

Example:

To create a filepicker that accepts images and videos and files youd need a very large accept:, instead you can just have a

deny:
 - .json

and allow everything else

This option is the reverse of accept.

This is useful to remove the `item.json` from the filepicker without having to set any accepted.

Example:

To create a filepicker that accepts images and videos and files youd need a very large `accept:`, instead you can just have a 

```
deny:
 - .json
```

and allow everything else
@ricardo118 ricardo118 requested a review from mahagr March 27, 2021 15:14
@mahagr
Copy link
Contributor

mahagr commented Mar 30, 2021

I guess this is fine, though I would love to see some global option to deny certain extensions regardless of what is allowed in the field.

@mahagr mahagr merged commit 0be0222 into develop Mar 31, 2021
@mahagr mahagr added the enhancement Enhancement for an existing feature label Mar 31, 2021
@w00fz w00fz deleted the ricardo118-deny-filepicker branch September 22, 2021 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement for an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants