Submitted by BeatnikDude on Fri, 04/25/2014 - 12:27
The Drupal Storage API module allows you to host user uploaded image field files that are processed/sized locally on way to storage on Amazon S3 CDN. The Storage API module can be used for any images on your site.
- Storage API: https://drupal.org/project/storage_api
- Download: https://drupal.org/project/storage_api
- Read:
- No README.txt? ...but linked screencasts from module page
- http://www.mediacurrent.com/blog/pros-and-cons-storage-api
- http://davidcsonka.com/blog/how-use-amazon-s3-store-your-drupal-website-files
- Enabled:
- Configure:
- Permissions
- Configure module at: /admin/structure/storage
- Leave Defaults
- Create a storage container, and set it to Amazon S3. You will need to provide an S3 bucket name and your AWS security access ID and secret key.
- Create a new storage class, set the initial storage location (local to reduce lag for users) and then set the final storage location to the S3 storage container above.
- Go back to your content type and update your image field so that the public download destination is assigned to the appropriate storage class, in this case the one for S3.
- Note:
- Existing image fields will need to be re-saved.
- Dont inadvertantly use one container from multiple sites, ie Dev and Production
- Files are transferred to other storage locations, such as Amazon S3, when cron runs. On Cron run Storage API will automatically transfer the file to S3 and then update the file associations.
- Related Modules:
- CDN: https://drupal.org/project/cdn
- S3 File System: https://drupal.org/project/s3fs