Private folder is not defined
Drupal form display configuration
Image/file field after the configuration is done.

This project is not covered by Drupal’s security advisory policy.

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
Supporting organizations: 

Project information

Releases