Hi guys, I would like trusted users to be able to enter a URL of a file that Drupal will download (curl or wget) to the server. Just a simple content type with a title and a cck field for the file that needs to be downloaded.

I've looked about for a module but none really appear to do this and I can't understand why since using a servers massive bandwidth to get content is a lot more efficient that uploading files at 100 kb/s.

Does anyone know of a module that will let me do this?

If not, any suggestions on how to do a custom module? (never done one before)

Any advice appreciated.

Thanks.

P.S I would like to do this on an old Drupal 5 install (that isn't worth the hours of upgrading) but anything from other version would still be helpful.

Comments

nevets’s picture

There is a module for that, Filefield Sources, problem is it is for D6 and relies on updates to CCK but it might serve as inspiration for a D5 module.

randomuser’s picture

Thanks for the suggestion but it looks like it would be brutal to backport to D5...

"Drupal 5 is no longer being developed even in FileField, and it would require a significant amount of effort to make this possible on D5, since the Drupal 6 version of FileField was completely rewritten to make such functionality possible." - Backport to Drupal 5? - http://drupal.org/node/519702

I've still to take a better look at the code but I'm not very hopeful.

Any other suggestions?