Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When i try to upload files on a Pantheon Environment i get the following error message:
The specified file temporary:// could not be copied, because no file by that name exists. Please check that you supplied the correct filename
because it's a multi server setup there is no fixed location for a temporary file.
Pantheons documentation mentions adding the following line of code however i couldn't get it to work:
<?php
if (isset($_ENV['PANTHEON_ENVIRONMENT'])) {
$conf['plupload_temporary_uri'] ='private://tmp';
}
?>
Comments