Pass allowed extensions to enable Uppy validation

Created on 29 April 2022, about 2 years ago
Updated 21 May 2024, about 1 month ago

Problem/Motivation

Uppy supports allowedFileTypes key in the restrictions array. See: https://uppy.io/docs/uppy/#restrictions
It adds a nice frontend validation and avoids unnecesary backend processing in most cases. I'm attaching a screenshot to show how it looks.

Proposed resolution

Pass along the list of extensions as drupal settings. The js file is already ready for that :)

Remaining tasks

Review, commit.

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Matroskeen πŸ‡ΊπŸ‡¦ Ukraine, Lutsk

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024