2

I am using drupal 7 and I want to upload a zip file and automatically extract it into multiple image fields on a node. The zip file contains images. Is there a easy way to do this? cause I'm not a programmer

3
  • Do you have a plan making sure post_max_size and upload_max_filesize versus the size of the zipped files isn't going to be a problem? Feb 23, 2014 at 8:28
  • all my zip files are under 100mb so it shouldn't be a problem on my vps
    – Ruriko
    Feb 23, 2014 at 8:30
  • 1
    Is there some reason you can't/won't go the more common way of uploading multiple image files like Rupesh is suggesting? Feb 23, 2014 at 11:17

3 Answers 3

1
+50

Take a look at imagefield zip module. It suits only for drupal 6, but related issues has two forks for drupal 7.

If none of that doesnt suits your needs, you can do it with little trick:

  • Create second file field for handle zip file upload;
  • Take a look at unzip function in imagefield zip module;
  • Implements something similar in hook_node_save().

If you have module creation skill you can give your solition back to comunity ;)

2
  • I'm not really a programmer so I wouldn't know how to use those functions :(
    – Ruriko
    Feb 23, 2014 at 9:05
  • 5
    pay some kind of money to somebody =) Feb 23, 2014 at 11:20
2

I think your main goal is upload multiple image on a single upload and this goal you can achive via a module name 'Multiupload Imagefield Widget' https://drupal.org/project/multiupload_imagefield_widget.

This module provide a widget to select multiple images . For more info go through the module instructions.

0

Drupal 7 solution for this issue Pack & Upload.

Got to this post while searching for a solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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