Information for: DEVELOPERS   PARTNERS

Using Views Data Export

Resolving upload issues with Acquia Cloud Enterprise

You may run into various issues when uploading files to applications running on Acquia Cloud Enterprise. For cases when you’re using something like the Views Data Export (VDE) module, setting a special temp directory is not quite as simple as the case of plupload, because VDE uses Drupal’s stream wrapper mechanism for its temp files.

In order to make VDE use a temp directory different than the default, you must provide an alternative stream wrapper. This is what the Alternative Stream Wrappers module does.

To make VDE work on Acquia Cloud Enterprise with a special temp directory:

  1. Install and enable the Alternative Stream Wrappers module.

  2. Set a variable to configure the alt_stream_wrappers_alt-temp_path variable to use a directory on Gluster. For example:

    • Drush:

      drush vset alt_stream_wrappers_alt-temp_path '/mnt/gfs/[docroot].[environment]/tmp'

    • Or, edit the settings.php file and add:

      $conf['alt_stream_wrappers_alt-temp_path'] = '/mnt/gfs/[docroot].[environment]/tmp';

  3. Configure VDE to use the alt-temp stream wrapper.

    • Drush

      drush vset views_data_export_directory 'alt-temp://'

    • Or, edit the settings.php file and add:

      $conf['views_data_export_directory'] = 'alt-temp://';

Your uploads should work once these are set. You can also use this method for plupload using plupload_temporary_uri: "alt-temp://". However, if you’re only using plupload, this method may be more than you need.