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
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Media
8,931 sites report using this module
- Created by casey on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.5
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


