Can't configure file extension types

Created on 17 April 2025, 8 days ago

Problem/Motivation

If you are not using the Media module, only the default file extensions from the Core File Module are allowed, which does not include audio or video files. The default files from the File Module are not configurable.

Steps to reproduce

- Install Gutenberg module without the Media module enabled.
- Add audio or video block.
- Error trying to upload the file.

Proposed resolution

Allow all of the file extensions listed in the settings.js file in the module.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @arparker
  • πŸ‡ΊπŸ‡ΈUnited States frob US

    I think the quickest, and most robust, answer here is to set a default list of extensions that include all the files that Gutenberg's default configuration allows. Right now it falls back to core's default list of file extensions. Relying on core for this is bad for a few reasons but mostly these two.

    1. Core has multiple lists of default file extensions.
    2. Gutenberg's default configuration has blocks that require uploading files of more extensions than core allows.

    We cannot do anything about the first problem here but we can solve the second. Currently, if someone does a minimal installation of Drupal and Installs only Gutenberg, and it's dependencies, then they will not be able to use any of the multimedia blocks offered by Gutenberg.

Production build 0.71.5 2024