The best way to reference a moved file?

Maedi - May 6, 2009 - 14:32
Project:Media Mover
Version:6.x-1.0-beta2
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I watched the DrupalCon 2009 MediaMover demonstration which was very helpful. Thanks!

I'd like to upload a file through a CCK Filefield, then have this file moved to Amazon S3 and stored (no conversion). I can succesfully move all files over to S3, but I'm having trouble referencing those files from the node.

So in the 'complete' stage I was trying to 'Save data in a CCK Field', and I was saving this data back to the source Filefield. But this doesn't work, I think it creates an infinite loop? (When I click 'save' on a node, the page never finishes loading)

Do I need to save this locative data into a new CCK field instead? Is this the best way?

All of these people seem to want the same thing. I'll post a helpful tutorial on the best approach when I figure it out myself.

BTW, this seems like the ideal solution:

1. Have the file uploaded through a CCK Filefield
2. Then have that file moved over by MediaMover to S3/other.
3. And then have the same Filefield represent that change of location.

#1

Maedi - May 17, 2009 - 13:29

Okay, I'm going to go ahead and at the 'complete' stage, save the data in a CCK field. I hope this is the best option. Or I could save the data as a node file attachment?

If I have a CCK field with multiple values (Choosing the 'Unlimited' option), will Media Mover know how to save those multiple values in a CCK field?

#2

iaminawe - June 30, 2009 - 14:24

This works perfectly if using the current dev version... it replaces the source file with the one from Amazon S3... awesome.

#3

Maedi - July 2, 2009 - 07:15

I ended up saving the data in a new field called 'field_S3'. Everything's already been moved but I'm tempted to save the data back into the original CCK file field if possible?

 
 

Drupal is a registered trademark of Dries Buytaert.