The best way to reference a moved file?
| Project: | Media Mover |
| Version: | 6.x-1.0-beta2 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
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
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
This works perfectly if using the current dev version... it replaces the source file with the one from Amazon S3... awesome.
#3
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?