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 }}

Supporting organizations:

Project information

Releases

8.x-1.5 Stable release covered by the Drupal Security Team released 30 May 2025
Works with Drupal: ^10.3 || ^11
Install:

Development version: 8.x-1.x-dev updated 30 May 2025 at 12:19 UTC