1

Say I add an image using the built-in Media module.

A couple months later, I have to change the image file for some reason. So I edit the media entity, delete the existing file, and upload the new file. The new file has the same name as the old file.

This creates a new file, filename_0.jpg. How can I cleanly replace the file without adding a new suffix?

1

Use the Media Entity File Replace module. This is the exact use case it was created for.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.