---
title: "Temporary files"
date: "2024-02-14T06:18:38+00:00"
summary: "Learn about Drupal's temporary files directory on Acquia Cloud Platform. Discover its location, configuration, and important considerations for efficient file management and module compatibility."
image:
type: "page"
url: "/acquia-cloud-platform/temporary-files"
id: "8f3f91a0-8216-4cbb-8aa5-d4ce231354d4"
---

The temporary files directory in Drupal is the location on your infrastructure where Drupal core and contributed modules upload files for processing.

Acquia’s [require line](/acquia-cloud-platform/manage-apps/code/require-line) in your website’s `settings.php` file configures the location of your temporary files directory to `/mnt/tmp/[sitename].[env]`, where `[sitename]` is your application name and `[env]` is the environment. This location is available as an [environment variable](/acquia-cloud-platform/develop-apps/env-variable).

*   For more information about your application name, see [Sitename definition](/definitions/sitename).
*   For a full list of Cloud Platform file locations, see [File locations](/acquia-cloud-platform/manage-apps/files/system-files#cloud-file-locations).
*   For more information about Twig caches, see [Twig caches](/acquia-cloud-platform/manage-apps/files/twig).

Important considerations
------------------------

*   If you cannot locate temporary files, you can create a custom directory on the shared file system to store temporary files. In addition, ensure that you provide an already existing path to the `file_temp_path` parameter to prevent issues with temporary files.
*   If you modify the value of the `file_temp_path` parameter in Drupal's `settings.php` file, you might face issues. In such a case, ensure that you run Drupal cron to collect any old and garbage temporary files. In addition, you must set a low value for the `file_temporary_max_age` parameter in Drupal's `settings.php` file. This ensures that temporary garbage files are deleted sooner.
*   If you use Cloud Classic, do not set the temporary directory to `/tmp`. The size of the `/tmp` directory is lesser than the size of the `/mnt/tmp/[sitename].[env]` directory. Therefore, it might run out of space in a short time, and might be purged quickly.
*   If you use Cloud Next, the default value of `file_temp_path` parameter is `/tmp`.

Modules and the temporary directory
-----------------------------------

Drupal modules that write to temporary directories may require additional configuration to function properly in environments with multiple infrastructures, such as production environments for Cloud Platform Enterprise and Cloud Platform Site Factory. For more information, see [Additional module issues](/acquia-cloud-platform/develop-apps/drupal-apps/module-caution#cloud-caution-module-issues) and the following lists of modules:

*   [Modules to use with caution on Cloud Platform](/acquia-cloud-platform/develop-apps/drupal-apps/module-caution)
*   [Modules and applications incompatible with Cloud Platform](/acquia-cloud-platform/develop-apps/drupal-apps/module-incompatibilities)

More information
----------------

*   [Correcting broken file uploads](/acquia-cloud-platform/manage-apps/files/broken)
*   [Drupal: Twig cache](/acquia-cloud-platform/help/93181-drupal-8-9-twig-cache "Drupal 8-9: Twig cache")
*   [Using environment variables](/acquia-cloud-platform/develop-apps/env-variable)
*   [Accessing system files](/acquia-cloud-platform/manage-apps/files/system-files)