Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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.