In Drupal 8, Is there any way to change the temporary file directory path if I don't have access to the UI page /admin/config/media/file-system, either with Drush or by modifying a config file?



drush config:set system.file path.temporary /tmp -y


If done through settings.php it will no longer be changeable via either the interface or Drush.

Drupal 8.8+

See the change record.

$settings['file_temp_path'] = '/tmp';

Drupal 8.7 and below

$config['system.file']['path']['temporary'] = '/tmp';
|improve this answer|||||

Not the answer you're looking for? Browse other questions tagged or ask your own question.