Is there a way to batch import from a folder that already resides on the same server as Drupal? I tried using Media Mover to harvest and copy files to the local Web Dav folder, but that didn't work. I have a folder of about 10,000 10MB+ files, so copying them locally and reuploading through webdav is going to take a really long time.

Any ideas would be appreciated.

Comments

miglius’s picture

I would suggest using http://drupal.org/project/drush to write a script which would loop trough your files on the server and create file nodes from them.

miglius’s picture

Issue tags: +import, +batch
mokko’s picture

Any progress on this one. I would much prefer a drush solution. But any batch import method would be a big step forward? What is threre to do to achieve this?

johanneshahn’s picture

Version: 6.x-1.0-alpha4 » 6.x-1.x-dev
Priority: Normal » Major

move to 6.x-2.0-dev

johanneshahn’s picture

Category: support » feature
johanneshahn’s picture

Status: Active » Needs review

hi,
theres now a file batch module to export or import files
please review and test it.

thx!

johanneshahn’s picture

Status: Needs review » Closed (fixed)

No responce

gabtrek’s picture

Hi, johanneshahn, where is the "file batch module" that you mentioned? How can I use it?
I realy need a method to bulk/batch/mass upload files in to the FF file system.
I'm trying to use File Framework to build a Document Management System for archiving purposes. I think the CAS method through Bitcache is usefull for my goal.

One more, can you explain me how to use Drush to do this: "...write a script which would loop trough your files on the server and create file nodes from them." that Miglius said.
Please, excuse me if I can't explain me very well. English is not my natural language.

Thk!

johanneshahn’s picture

hi,
install File batch Module goto admin/settings/file/batch and define the dirs where u want import or export your files.
after thatgo to admin/settings/file/batch/export or admin/settings/file/batch/import and run Import/Export

but remember this is only for developmentdont try it @production just 4 testing