Help on Zip Files

It is possible to upload sets of files to the wiki bundled into ZIP archives. Once uploaded as an attachment to a page, these files can be unzipped in one of two ways:

  1. If the file is a Moin package, the pages or plugins will be installed (see HelpOnPackageInstaller).

  2. In all other cases, the pages will be extracted to the static file server. Viewing the page for the original ZIP file attachment will give you a directory listing, which will be linked to the extracted files on the file server (if the ZIP archive has already been unpacked).

Please note that this latter behaviour differs from the built-in MoinMoin attachment functionality, which extracts the files in a ZIP archive as attachments. Extracting these files to a file server provides the following advantages:

  • Organization of file attachments into subdirectories
  • Proper serving of linked/html documents (with embedded images, etc.)
  • Faster serving of files

This feature is currently used for browsing and searching archived web pages. A ZIP archive collection is generally preferable to individual attachments if the files belong together as a unit, and will not be referenced individually; if we need to embed documents within the wiki text, or if there are only a few attachments, it makes sense to upload them individually to the wiki. Note that this solution works best for a large number of small files, rather than a small number of large files (which end up being duplicated on the server).

Since the "install" option is still available, attachments can continue to be uploaded in bulk as packages.

Note for administrators: There are security considerations applicable to this utility.

  • The web server should not be configured to process executable (script) files of any type in the static directory.
  • The zipfile.py patch must be installed against python so as to prevent the security vulnerability of files being extracted outside the directory path.

There are 0 attachment(s) stored for this page.

HelpOnZipFiles (last edited 2011-06-23 04:48:28 by EricThrift)