If this happens, Acquia recommends you to set the temporary files directory.
Another common cause for uploads to fail is very large file uploads. In this scenario, Acquia always recommends the use of a chunked upload module, which splits your large file into many chunks. If it is misconfigured, chunks scatter across multiple web nodes, making it impossible to ‘stitch’ the upload back together.
For large file uploads, use a contributed module for file uploads.
You can permanently set your website’s temporary files directory by adding a setting to the website’s settings.php file after the Acquia include statement. The setting for you to use varies, depending on your Drupal version:
To modify the settings for the current Drupal version:
$settings['file_temp_path'] = "/mnt/gfs/{$_ENV['AH_SITE_GROUP']}.{$_ENV['AH_SITE_ENVIRONMENT']}/tmp";
Contributed modules can be configured to help work around these issues on a permanent basis, which work by first creating a temporary file for each uploaded file. After the temporary file is on the infrastructure, the file is then moved to its final destination. For applications running on single-node Cloud Classic infrastructure, such as Cloud Platform Professional applications, this works without any errors. For applications running on Acquia Cloud Enterprise, however, you may experience errors when some of the uploaded files don’t save properly.
Files added by these modules to Cloud Platform Enterprise applications are saved to a temporary location that is not shared between the redundant provisioned infrastructure. It is possible for the move process to take place on a node that is different from the one that the file is uploaded to, which causes that move to fail and the upload to appear broken.
Acquia does not recommend a specific module because it often depends on the configuration of your Drupal site. Commonly-used modules include:
Dropzone provides an open source javascript library to handle drag and drop file uploads with image previews, and supports chunked uploads. The Drupal module integrates it seamlessly into the current Drupal version through the core media entity.
Currently, the following patch is required to enable chunked uploading, which is best installed through Composer:
Drupal.org: DropzoneJS: issue #3125682: Support chunked uploads
For all appropriate modules, ensure that you configure the temporary files directory.
You can temporarily force all of your upload requests to the same node. To do this, Acquia recommends you to use one of the following methods:
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this happens, Acquia recommends you to set the temporary files directory.
Another common cause for uploads to fail is very large file uploads. In this scenario, Acquia always recommends the use of a chunked upload module, which splits your large file into many chunks. If it is misconfigured, chunks scatter across multiple web nodes, making it impossible to ‘stitch’ the upload back together.
For large file uploads, use a contributed module for file uploads.
You can permanently set your website’s temporary files directory by adding a setting to the website’s settings.php file after the Acquia include statement. The setting for you to use varies, depending on your Drupal version:
To modify the settings for the current Drupal version:
$settings['file_temp_path'] = "/mnt/gfs/{$_ENV['AH_SITE_GROUP']}.{$_ENV['AH_SITE_ENVIRONMENT']}/tmp";
Contributed modules can be configured to help work around these issues on a permanent basis, which work by first creating a temporary file for each uploaded file. After the temporary file is on the infrastructure, the file is then moved to its final destination. For applications running on single-node Cloud Classic infrastructure, such as Cloud Platform Professional applications, this works without any errors. For applications running on Acquia Cloud Enterprise, however, you may experience errors when some of the uploaded files don’t save properly.
Files added by these modules to Cloud Platform Enterprise applications are saved to a temporary location that is not shared between the redundant provisioned infrastructure. It is possible for the move process to take place on a node that is different from the one that the file is uploaded to, which causes that move to fail and the upload to appear broken.
Acquia does not recommend a specific module because it often depends on the configuration of your Drupal site. Commonly-used modules include:
Dropzone provides an open source javascript library to handle drag and drop file uploads with image previews, and supports chunked uploads. The Drupal module integrates it seamlessly into the current Drupal version through the core media entity.
Currently, the following patch is required to enable chunked uploading, which is best installed through Composer:
Drupal.org: DropzoneJS: issue #3125682: Support chunked uploads
For all appropriate modules, ensure that you configure the temporary files directory.
You can temporarily force all of your upload requests to the same node. To do this, Acquia recommends you to use one of the following methods:
If this content did not answer your questions, try searching or contacting our support team for further assistance.