This page provides instructions for setting up Cloud Files module to upload files on Rackspace CloudFiles.
The instructions assume you already have a Rackspace Cloud file account with a Container created for storing your Drupal files.
- Download and Install Cloud Files module (dev version) on your Drupal site
- Open readme.txt from module folder and follow instructions.
- Download php-opencloud library files from: https://github.com/rackerlabs/php-cloudfiles and place it in sites/all/libraries/rackspace/ so that the path to cloudfiles.php is sites/all/libraries/rackspace/php-cloudfiles/cloudfiles.php
- Enable the module
- Go to /admin/config/media/cloud-files and choose appropriate authentication URL.
- Enter username. It will be same as your username on https://mycloud.rackspace.com/
- Enter the API key that you generated on https://mycloud.rackspace.com/
- Container name will be same as the one you saved in https://mycloud.rackspace.com/
- Save configuration
- Go to admin/config/media/file-system
- Select the 'default download method' as 'Rackspace cloud files' and save
- Go to your content type and choose manage fields
- Create and/or Edit image field type
- go to 'upload destination' and select 'rackspace cloud files' and save
- you are done :)
Troubleshooting:
If you can not get it to work, then please ensure that
- You have enabled Publish to CDN setting on your Rackspace Cloudfiles container.
- Your API Key, Container and Location settings are correct.