-
Notifications
You must be signed in to change notification settings - Fork 71
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
Allow modules to add/modify allowed File extensions #1137
Comments
@mjordan |
Super! Thanks! |
Reopening this since it probably should be added to https://github.com/Islandora-CLAW/CLAW/blob/master/docs/user-documentation/datastreams.md. |
I am also thinking that we should document for developers how to override this list either in configuration or in code. For example, if I add some functionality in a custom module that allows uploading of .xml files, I should not need to tell admins "Step 5: Visit admin/structure/media/manage/file/fields/media.file.field_media_file and add 'xml' to the list of allowed extensions." |
@mjordan You can modify it inside a module's hook_install. |
For those who want to not to do any configuration outside of ansible, one approach might be to update the |
I stick this in hook_install |
Currently, the list of extensions allowed for "File" Media are hard coded in
islandora/modules/islandora_core_feature/config/install/field.field.media.file.field_media_file.yml
. They are:Modules should be able to alter this list, to allow for uploading of files whose extensions are not present (or removing extensions from the list to disallow uploading of specific types).
The text was updated successfully, but these errors were encountered: