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 }}
Ask your assistant about File Replace (D8+)
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- file Drupal core
Required by
1 tracked project depends on this one
- Islandora 770 sites
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 8.x-1.5 | Stable | 10–11 | May 30, 2025 | ||
| 8.x-1.4 | Stable | 8–11 | Mar 5, 2025 | ||
| 8.x-1.4-rc1 | Pre-release | 8–11 | Jul 18, 2024 |