Existing file from another media entity overwritten

Created on 2 December 2024, 24 days ago

Problem/Motivation

Existing file from another media entity is overwritten if the the newly uploaded file via the edit form has the same name.

Steps to reproduce

  1. Have an existing media item "Media A" with image file name "myfile.jpg"
  2. Use the edit dialog on another media item "Media B". Replace the file with "myfile.jpg" (different file but same name)
  3. "myfile.jpg" from Media A is overwritten with "myfile.jpg" from the Media B.

Proposed resolution

I would expect Media B to have renamed the file as there was an existing one already.

🐛 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

Production build 0.71.5 2024