Incorrect filename when uploading a duplicate

Created on 15 September 2023, about 1 year ago
Updated 24 May 2024, 6 months ago

Problem/Motivation

Suppose you already have a file named "foo.jpg" uploaded to a media entity. If you use this module to upload a file with the same name, Drupal will automatically add a _0 to the filename, but the actual filename in the media entity will not show this change. Uploading a single file to a media entity works fine.

Steps to reproduce

  • Create a media entity (e.g. image) with a file called "foo.jpg"
  • Use this module to upload a file with the same name "foo.jpg" (can be the same file)
  • Save the media entity
  • Browse the media entity and hover over the filename. The Name of the entity as well as the filename will both show "foo.jpg", but if you hover over the link to the actual file, you'll see "foo_0.jpg" as the filename.

If you upload another "foo.jpg", the number will increase, but the issue is still there.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇹Italy dgsiegel

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

Comments & Activities

Production build 0.71.5 2024