Skip to content

Instantly share code, notes, and snippets.

@prashantdsala
Created February 4, 2024 05:38
Show Gist options
  • Save prashantdsala/77d904fe8cc1f2b7d76b70e954bb54a9 to your computer and use it in GitHub Desktop.
Save prashantdsala/77d904fe8cc1f2b7d76b70e954bb54a9 to your computer and use it in GitHub Desktop.
Drupal - Specify path for private files directory
<?php
/**
* Private file path:
*
* A local file system path where private files will be stored. This directory
* must be absolute, outside of the Drupal installation directory and not
* accessible over the web.
*
* Note: Caches need to be cleared when this value is changed to make the
* private:// stream wrapper available to the system.
*
* See https://www.drupal.org/documentation/modules/file for more information
* about securing private files.
*/
$settings['file_private_path'] = $app_root . '/../private_files';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment