Add max_files setting

Created on 13 May 2024, 10 months ago

Add the ability to limit the number of files that can be added to the queue.

      $form['upload'] = [
        '#type' => 'plupload',
        '#upload_validators' => [
          'file_validate_extensions' => ['jpg png'],
        ],
        '#plupload_settings' => [
          'runtimes'      => 'html5',
          'chunk_size'    => '1mb',
          'unique_names'  => TRUE,
          'max_files' => 1,
        ],
      ];

Based on solution [Link] from FileField Sources Plupload [ Link β†’ ]

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bamberjp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024