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.
Hey guys,
why there isn't an option to set the upload size limit per role?
Thanks
Yannick
Comments
Comment #1
quicksketchBecause this option doesn't make any sense. Why would you discourage your users from creating content? Or worse, users that need to free up space might go back and start deleting files that are in use to make it so they can create more nodes. As an alternative you can limit total file size per node or per field, and if you want to limit total file size, I suggest installing a module to limit the number of nodes that user can create.
Comment #2
yannickooOkay, I thought it's possible to say:
Normal (Authenticated users) can upload 10MB per field.
Pro users can upload 20MB
Premium users can upload 30M
That would be per node.
Comment #3
quicksketchYes, you can already limit *per file* and limit *per node*. However there is no way to specify different sizes for different user roles out-of-the-box, though this should be possible using CCK's hooks. However it would require a custom module to implement such functionality.
Comment #4
silurius CreditAttribution: silurius commentedSubscribing.
Comment #5
quicksketchClosing as this is answered as it can be. It won't be added as a feature at this point with FileField in core.
Comment #6
hermes_costell CreditAttribution: hermes_costell commented"Because this option doesn't make any sense."
Incorrect.
Example: Audio file. Normal users have a 10MB file size limit. Paid users (in the inner circle) are allowed up to 50MB. Administrator user type has no limits.
Comment #7
yannickoohermes is right. i really cannot understand this statement.
Comment #8
kongoji CreditAttribution: kongoji commentedI don't know if this can help you, by the way I made a module to limit upload size per role:
http://drupal.org/project/filefield_role_limit
Comment #9
yannickooPretty old issue but thanks for the information, great work!