Pass allowed extensions to enable Uppy validation

Created on 29 April 2022, over 2 years ago
Updated 21 May 2024, 7 months 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.71.5 2024