Search code examples
drupalfile-uploaddrupal-7

Drupal bulk file upload


I have created a content type and the contents submitted in this content type is displayed to client using views with lightbox.

Content type has got a file field element in the form to upload the file in pdf format.Thus each upload is saved as a node.

I have got around thousands of such pdf files that to be uploaded and displayed in the front end using lightbox .

Is there any possible method to upload the pdf in bulk (say some 30 to 40) rather than uploading one by one?

Please suggest.


Solution

  • I'm not aware of a current Drupal solution, but if I was in your situation, I'd probably upload the files en masse using another upload method, then import them in a batch with a bit of custom code to rip through the contents of the directory, associate the files and maybe create notes or entities as appropriate.

    Uploading even thousands in batches of 30-40 sounds like an enormous waste of your time when such a thing could be done in a single task if you write the code to do it up front.

    (I don't have a code example sorry, but there was a module to do this in Drupal 6: File Import.)