Comma-separate the list of allowed file extensions

Created on 14 May 2020, over 4 years ago
Updated 3 August 2024, 5 months ago

Problem/Motivation

The list of allowed file extensions on a file field display is not very readable, e.g.:

Allowed types: gif jpg jpeg png pdf mp3 tif tiff.

Current State

Input

The input allows both comma separated and space separated file extensions in allowed files. If we enter space separated entries upon save they get stored separated by commas.

Output

The list of file extensions is always displayed separated with spaces.

Proposed resolution

Change the list to add commas between each item if they are not already present, e.g.

Allowed types: gif, jpg, jpeg, png, pdf, mp3, tif, tiff.

Input

Unchanged.

Output

The list of file extensions is always displayed separated with commas.

Remaining tasks

Postponed on #1708476: Allowed file extensions Widget Input/Display Length Problem β†’

User interface changes

Before and after screenshots in #47 ✨ Comma-separate the list of allowed file extensions Postponed

Before

After

API changes

None

Data model changes

None

Release notes snippet

None

✨ Feature request
Status

Postponed

Version

11.0 πŸ”₯

Component
File systemΒ  β†’

Last updated 2 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

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