how to upload files "by hand"

Chajecki - August 8, 2007 - 07:12

Hi,

I have to upload many files to drupal, attach them to specific nodes and I wanna use upload module to do it. But since the number of those files is large I cannot do it one-by-one using drupal interface. So I thought that I could write a simple php code that will do it for me but I don't know where I should start and what functions I should use. At the same time I would like to avoid INSERTing those files straight to db.
I guess that at least some of you had to do something similar so I will appreciate if you could give me some hints or (even better) provide code that will do the job.

Thanks in advance for any feedback.

Cheers,
Zibi

Do you need lots of files on

cycas - August 8, 2007 - 09:23

Do you need lots of files on one node, or does each file need its own node?

If you are looking for a simple document library style setup, with, say a bunch of word documents that could be organised by folder, you might want to look at the filebrowser module - I used it for something very similar last year. Then you just FTP the files directly onto the server into the appropriate directories

Basic, but simple, easy to use and the people who are using the one I set up for them love it.

If you want something cleverer, perhaps Web file manager? http://drupal.org/project/webfm

WebFM is damn good

futbal - August 8, 2007 - 11:01

WebFM is damn good

Thanks

Chajecki - August 8, 2007 - 21:19

Thanks for your hints. I will take a look into those modules.

Answering your question, I need just one file per node but I have at least 1k nodes so that's why I wanted to do it automatically.

Thanks.
Zibi

sorry, duplicate.

cycas - August 8, 2007 - 09:48

sorry, duplicate.

 
 

Drupal is a registered trademark of Dries Buytaert.