Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By poltawski on
I'd like to allow certain trusted users to upload files of whichever extension they like.
The nature of what we are using drupal for means that its impossible to list all possible file extensions (some are config files with weird extensions, etc).
Is there a way of doing this?
Comments
Try this
I didn't test it, but it should work.
1. Open upload.module.
2. Locate upload_perm() near line 24, and add an extra permission:
3. Locate this statement in function upload_nodeapi() near line 176:
and change it to:
You should now have a functional extra permission in your access control page.