Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

File upload directory change

Security covered 5 sites

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

  1. Download or install with composer
  2. Enable file_upload_directory_change

Configuration

  1. Define the private folder in settings.php of your drupal instance. (if not already done)
  2. Be sure the private folder is created.
  3. Go to the file/image field configuration, in the form display of the content type you want.
  4. Edit the field configuration and check "enable" for the configuration "File upload directory change enabled"
  5. save the form diplay settings.

Using the directory change functionnality

  1. Go in a content you just changed the content type configuration
  2. Edit the content
  3. check the checkbox "Change file location" near the image field.
  4. Save the content
  5. if your file directory was public before saving, now it's defined as private
  6. 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

Tracked releases
2
Tracked since
Aug 2026
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

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