[Imc-drupal-dev] remote media hosting

Andrew McNaughton andrew at scoop.co.nz
Mon Mar 9 00:16:44 PDT 2009


mark burdett wrote:
> On Sat, 07 Mar 2009 20:03:28 +0100, Alster wrote:
>   
>> I know next to nothing about Drupal, but if you have root on the server
>> drupal runs on, you could use curlftpfs to mount the ftp server into the
>> directory drupal would normally store the data to.
>>
>> http://curlftpfs.sourceforge.net/
>> http://gentoo-wiki.com/wiki/Mounting_SFTP_and_FTP_shares
>>     
>
> Hi, this may work well for you.
> Or you could also try a drupal-specific solution, the Media Mover module 
> by Arthur Foelsche.  See http://drupal.org/node/372952 -- there isn't a 
> stable release of the FTP storage module but it's available in the dev 
> snapshot or from CVS.
>   
Try that first.

If it's necessary to write a module, I wouldn't expect it to be
particularly hard to do in drupal. You'd upload the image as usual, then
have your module intercept requests for stuff under /files, upload the
local file to images.indymedia.org, add a filter to the node, clear the
cached version of the node's html, and either send the user a redirect
to images.indymedia.org or serve the file directly. Optionally delete
the local file. The filter would replace the urls on the page with the
images.indymedia.org ones, so the next request gets sent directly to
images.indymedia.org.

Andrew




More information about the Imc-drupal-dev mailing list