-
Notifications
You must be signed in to change notification settings - Fork 130
How to show only certain mime types from configuration? #193
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
Comments
Hi @jstnthms, do you willing to make PR? |
Edit: my solution isn't exactly correct. I had the variable
Should I still make a PR? |
Why not, i will accept it 👍 |
For continuity, pull request is here: #195 |
merged and tagged as 6.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see there is an option to set the visible mime types from the client side, and I know I can restrict the uploadable mime types from the configuration, but I don't see how I can set the visible mime types from configuration.
Is overriding the ElFinder Controller and templates my only option right now?
Assuming there is no way to set the visible mime types through the configuration, it would be nice to be able to do something like this:
then ElFinderController would pass along a template variable called
mimeTypes
, set to the value ofvisible_mime_types
.It would be a whole lot cleaner than having to override the controller and several templates. Plus, if you are restricting the uploadable types, you probably want to restrict the visible types the same way. Specifically, for inserting images into a wysiwyg, or if you have a file select field for PDFs only, etc.
The text was updated successfully, but these errors were encountered: