FileField Extract

Component ID

1305772

Component name

FileField Extract

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module allows you to extract archives uploaded to a FileField.
It is similar to ImageField Zip but there are some key differences.

  • It will not include the extracted files in database tables (upload, content_field*),
  • therefore the extracted files will not be included in node fields, and finally
  • they will not be deleted when the node gets removed (they can be deleted using file browsers).

The main purpose of the module is to upload a (large) number of files that are used by the node content directly. For example, you upload a content with lots of images/files and don't want to waste your time uploading the files one by one.
Currently, this module acts as an easty-to-use helper module for DocBook2Book to attach files to the DocBook XML content.

Requirements

FileField and FileField Paths are required to install this module.

How to use it

Before using this module create a content type with a filefield that enables uploading (ZIP) archives. Don't forget to set the FileField path (files will be extracted into that location).

You can activate the module on the node edit form by selecting the proper filefield in the "Filefield Extract" fieldset.

  1. Upload the (ZIP) archive to a filefield.
  2. Select that field in the "Filefield Extract" fieldset
  3. Save the node
    The files will be extracted on node save.

Work in progress

This module is under development.
Currently, it supports ZIP files using zip_* PHP functions.

It will not tolerate configuration or input errors very well.
There could be problems with handling specially crafted subdirectories (some/.../../../dir).
It does not play with DB tables, but it modifies your file system - so use it at your own risk!