Allow replacing file with same name

Created on 3 February 2023, over 1 year ago

Problem/Motivation

This might be a feature request. Maybe I don't understand the purpose of this module. I'd like to replace a file from a Media entity by uploading a different version of the file with the same name. My assumption was that this module would allow me to replace the original file and keep the original file name. If I attempt to upload a file with the same name to the Replace file field, I'm given the same error message I get when doing the same thing using the core image field:

"Error message
The specified file mountains.jpeg could not be uploaded.
A file with the same name already exists in the system; link to this file instead of uploading a new one when possible to avoid duplication. If it is a different file, you must change the name of your file before uploading.
Unable to upload replacement file."

What am I missing? Do I really have to first rename the file to something unique before uploading, only to have the file be renamed back to the original file name during the upload process?

Steps to reproduce

- Enable and configure this module.
- Create a Media Image entity and upload a file.
- Edit the Media entity and attempt to upload the same file using the Replace file field.
- You will see the above error.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

1.1

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States maskedjellybean Portland, OR

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

Comments & Activities

Production build 0.69.0 2024