Closed (fixed)
Project:
Storage API
Version:
7.x-1.5
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
13 Aug 2013 at 23:44 UTC
Updated:
4 May 2015 at 16:34 UTC
Jump to comment: Most recent
Wondering if there's a proper procedure for doing this? I've got a site with a ton of images/image cache versions that I'd love to switch over to my Storage API Amazon S3 container.
I've got two containers setup for a class, an initial local filesystem one in the same directory as my original sites/default/files dir, and then an Amazon S3 one.
Is it possible to get Storage API to recognize these existing images and their imagecache versions?
Comments
Comment #1
cgdrupalkwk commentedCheck out https://drupal.org/project/storage_api_populate. It appears to be a work in progress but is aiming to do what you've described.
Comment #2
dantodd commentedIs there an update on this?
The module referred to by @cgdrupalkwk has no files and no activity for some time.
Comment #3
Andre-Bdantodd check the repository, might help you start: http://drupalcode.org/project/storage_api_populate.git/tree/refs/heads/m...
Comment #4
jiv_e commentedTry something like this... quite ad hoc, but works for me.
Put this code in your file migration class and change the $field_name variable to match your file field name.
Comment #5
perignon commentedThis is a very valid request to migrate data. Worth considering and potentially documenting as an option for people coming from a local file system.
Comment #6
perignon commentedI added the module identified in #1 as a related module on the project page of Storage API. I see there was some recent activity on that module by the maintainers.
Comment #7
jonhattanYep, I'm the new maintainer. Please report any bug or request .. to the module's issue queue.