I have successfully created a config to move the CCK filefield for my podcast to be uploaded to a remote FTP, then change the file link of the CCK file to the remote server. However, I need to change the URL from ftp:// to http://
Any ideas here? Could this be a feature or is this something I am going to have to change just for my case?
Comments
Comment #1
dang.artman commentedI found the setting in the module. Problem solved.
Comment #2
dang.artman commentedActually, I found one more issue. When I am using filefield podcaster or iTunes module to create a feed, the link in the feed shows both the local and the remote directories as one single field together in the feed view. Any thoughts?
Comment #3
dang.artman commentedAnyone?? Please!
I have Media Mover automatically moving my MP3 files from the web server to a remote FTP server. The node loads the link fine, SWF Tools reads and displays the files just fine, but when it comes to loading the file into a feed, the URL link in the feed shows BOTH the web URL and FTP url mashed together into one line. I am so close to having this thing working thanks to this awesome module, I just need help with one seemingly small issue.
Thank you
Comment #4
arthurf commentedIs the FTP link coming from Media Mover's rss?
Comment #5
dang.artman commentedThe RSS feed is a View using the iTunes plugin. I also tried with Filefield Podcaster and the result is the same. Is there a Views style plugin for Media Mover CCK fields?
Comment #6
dang.artman commentedThis is what I am getting:
http://www.testsite.com/sites/default/files/ftp://testsite.ftpaudioserve...
It would seem to me, Media Mover is passing both the original and the processed location together all in one string. This is a CCK Filefield upload, that is being moved from the primary site to the FTP site after publishing.
Comment #7
arthurf commentedSo the issue is that Drupal 6 does not support external urls. Unless your FTP server has the same domain and exists in your files directory, FileField (and drupal core) cannot handle the non-local file url. Notice how the file path is has the path to your files directory first, then the media mover file path. That's drupal core and file field at work, not media mover. This is one of the reasons that Drupal 7 is a step forward from Drupal 6- it can handle these situations correctly.
The mm_cck module hacks the display of the filefield widget to utilize the external filepath. It does not do this gracefully. It sounds like there needs to be a cck file widget for media mover as well.
Comment #8
dang.artman commentedI just wish there was a way to apply the same hack that makes the node work, to my Views RSS output.
Comment #9
arthurf commentedI just committed some code to 6.2.x last night that should be able to handle this- it basically overrides the filefield functions and reimplements them in such away that it can use the media mover URIs that are stored on CCK fields.
You could try back porting this- you just need the mm_node_theme_registry_alter() function and the mm_node.formater.inc file.
Comment #10
apramakr commentedHi Dang,
Can you tell me how this got solved? I'm trying to do the same - CCK to FTP to CCK.
So I want to add the FTP path of the file in the CCK field. But only the local Drupal path to file gets saved.
Can you guide?
Thanks much!!
Edit: This is w.r.t to Comment #1