az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

Allow users to bulk upload files #2650

Open bberndt-uaz opened 1 year ago

bberndt-uaz commented 1 year ago

Motivation

Clients have requested the ability to upload multiple media files at once (such as PDF documents). Quickstart 1 offered this functionality, but in Quickstart 2 users can only upload one file at a time.

Proposed Resolution

Describe the solution you'd like

The Media Bulk Upload contrib module could provide the solution: this module seems to be the most popular for bulk or batch uploading of files. Its stable releases are covered by the Drupal security advisory policy. It requires the DropzoneJS module.

Quickstart 1 provided bulk upload functionality via the Plupload module, an Drupal integration for the Plupload widget. However, as of 7/30/2023, less than 500 sites report using the latest, Drupal 10 compatible version of this module.

The solution we choose should allow for the same metadata to be added as when users are uploading a single file (e.g. alt text should be required for images).

Roles and Permissions considerations

A clear and concise description of how each of the following roles would be impacted by this change:

Additional context

Add file(s) interface in Quickstart 1:

image
joeparsons commented 1 year ago

FWIW, it looks like the DropzoneJS module has some known issues on Pantheon related to temporary files: https://docs.pantheon.io/modules-known-issues#dropzonejs https://www.drupal.org/project/dropzonejs/issues/2916330

This same problem could affect any platform that uses load balanced infrastructure.

Pantheon's documentation about dealing with temporary file issues: https://docs.pantheon.io/guides/filesystem/tmp