Autofill media name if mapped in the media source

Created on 27 July 2023, 11 months ago
Updated 7 December 2023, 7 months ago

Problem/Motivation

When user adds a new media via the Media directories -entity browser, the media name is autofilled as the name of the file and there are users who dislike this feature.

Steps to reproduce

Add a new media in the Media directories -entity browser and see that the name is autofilled when the file is uploaded.

Proposed resolution

To add a way of disabling the autofill if wanted, the media type mapping could be used. As suggested in the core issue https://www.drupal.org/project/drupal/issues/3185321 → , the users who want the media name autofilled, could add a mapping in /admin/structure/media/manage/ in the "Name" part of the "Field mapping" section.

Remaining tasks

Code changes to add a check if mapping has been added for the media Name-field and act depending on that.

✨ Feature request
Status

RTBC

Version

2.1

Component

Code

Created by

🇫🇮Finland thatguy

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

Comments & Activities

Production build 0.69.0 2024