ZIP

This project is not covered by Drupal’s security advisory policy.

This module provides a "Compressed filefield" widget for fields of type file that allow to archive and compress files attached to an entity into one single file. So in principle this filefield widget can gather both files and images from other fields of type file and image.

This module is a spin-off of the original File Compressor field module. Big thanks to plopesc! The main reason for the spin-off is to have an original filefield instead of another module field. This has several advantages:

  • Rules can copy the file to other filefields because now they are the same datatype. Important for example Commerce File.
  • Integrates "almost" flawlessly with File (Field) Paths to rename the path and/or filename. This module provides an extension token to allow for each compressor provider extension.
  • Can generate multiple different compression type files on the same field.

Requirements

This module provides by default two Compressor plugins, Zip and GZip. This list can be extended using hooks. Each zip provider requires a different PHP library:

Zip: php_zip extension. PHP Zip Documentation
GZip: Archive Tar PEAR package. Archive Tar Documentation

Restrictions

Looks like this project will NOT be ported to Drupal 8 because the widget has been entirely decoupled of the field itself.

Project information

Releases