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.
Is there any way to set the maximum number of files, a user is allowed to upload?
Comments
Comment #1
slashrsm CreditAttribution: slashrsm commentedIt is currently not possible to set this.
Comment #2
selfsimilar CreditAttribution: selfsimilar commentedI'd like to see this, too. Mostly I want to use pluploader for the drag and drop functionality, but for single-file uploads.
Comment #3
slashrsm CreditAttribution: slashrsm commentedDoes Plupload library allow this setting?
Comment #4
selfsimilar CreditAttribution: selfsimilar commentedLooking through the Moxiecode Github bugs brought me to this - http://www.plupload.com/punbb/viewtopic.php?id=373. So it's doable, and the code looks pretty small (pasted code below). Ideally the 'max' value should be taken from the associated file field's 'number of values' value, though this won't help me directly since I'm building custom forms for my content types.
Comment #5
slashrsm CreditAttribution: slashrsm commentedThis will probably fit in 7.x-2.x
Comment #6
Elijah Lynn