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 the ability to restrict image types #1477

Open
ataylor32 opened this issue Jul 18, 2024 · 0 comments
Open

Add the ability to restrict image types #1477

ataylor32 opened this issue Jul 18, 2024 · 0 comments

Comments

@ataylor32
Copy link

The "base64" and "upload" plugins both have the accept attribute set to image/*:

https://github.com/Alex-D/Trumbowyg/blob/v2.28.0/plugins/base64/trumbowyg.base64.js#L150

https://github.com/Alex-D/Trumbowyg/blob/v2.28.0/plugins/upload/trumbowyg.upload.js#L212

It would be nice if this was configurable. Currently, any image type is allowed, including .bmp, .ico, and others. I would like to have the ability to restrict this to only certain image types.

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