Im doing a website for photos. The photographer uploads all the images and drupal generates a thumbnail and a resized image.

What i'm trying to do is to put a link , so the final user can download all the original files in a zip files.

Can you guys help me out?


Yes, there's a module for that (of course ;) )

Download module:

This module can compress any files attached to a node and provides a download link. To use this module you have to extract the PclZip library in /sites/all/libraries/pclzip which can be downloaded here: http://www.phpconcept.net/pclzip/pclzip-downloads.

  • How do I use the Download Module? Please, do you have any instruction about it? Thanks
    – user13680
    Feb 13 '13 at 13:55
  • @user13680 - the readme needs some work, in the meantime: drupal.org/node/1922568#comment-7126430
    – 30equals
    Mar 22 '13 at 10:26

PHP has a ZipArchive class.

I'm writing some code at the moment to implement this in Drupal on a node save. I'll add an example later. But for now there are examples on the ZipArchive page.


There's a better suited module available for that functionality now: https://www.drupal.org/project/zipcart, put everything into a cart and download a zip. About to start using zipcart for a project myself

Edit: ended up with DocBinder because zipcart got abandoned.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.