This module allows administrators to change the upload directory for files and images attached to fields, moving them between public and private storage. This can be configured on a per-field basis within content types.
This module allow the website administrator to change the location (public/private) of a file/image put in a field.
Installation
- Download or install with composer
- Enable file_upload_directory_change
Configuration
- Define the private folder in settings.php of your drupal instance. (if not already done)
- Be sure the private folder is created.
- Go to the file/image field configuration, in the form display of the content type you want.
- Edit the field configuration and check "enable" for the configuration "File upload directory change enabled"
- save the form diplay settings.
Using the directory change functionnality
- Go in a content you just changed the content type configuration
- Edit the content
- check the checkbox "Change file location" near the image field.
- Save the content
- if your file directory was public before saving, now it's defined as private
- if your file directory was private before saving, now it's defined as public
Ask your assistant about File upload directory change
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
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 3.0.0-alpha1 | Pre-release | 11 | Aug 27, 2026 | ||
| 3.x-dev | Dev | 11 | Aug 26, 2026 |