File Replace (D8+)
This module allows site administrators to replace existing files while preserving their original URI. It's useful for updating files that are directly linked or used elsewhere on the site.
The file replace module is a small utility providing site administrators with the possibility to replace files, keeping the file uri intact. This is useful in cases where a file is linked or used directly but needs to be updated occasionally.
Installation and usage
Install the module as you would any contrib module, preferably with composer:
composer require drupal/file_replace
The module currently only provides a 'Replace' page for files. You will need to manually add links to the file overview page. Simply adding a global text field with a link like the following would work fine:
admin/content/files/replace/{{ fid }}