Batch Upload Plugin

Attach multiple files at once by uploading a zip archive

Usage

Plugin Settings

Plugin settings are stored as preferences values. You can override the defaults for these preferences in Main.SitePreferences, the WebPreferences topic of the current web, or in individual topics, using the standard 'Set' syntax e.g:

   * Set BATCHUPLOADPLUGIN_ENABLED = 1

Changing them here will have no effect! This allows you to upgrade the plugin without having worry about losing your settings.

Configurable Preferences

Plugin settings are stored as preferences values. To change the setting you need to overwrite them in DefaultPreferences. Changing them here will have no effect! This allows you to upgrade the plugin without having worry about losing your settings.

Conditional Batch Upload

This plugin provides the ability to choose between attaching uploaded zip files, or extracting and attaching the contents. To enable this feature, add the following lines to the skin templates files, just after the hidefile table entry:

 <input type="checkbox" class="foswikiCheckbox" id="batchupload" checked name="batchupload" %BATCHUPLOADCHECKBOX% /><label for="batchupload">%MAKETEXT{"Batch upload for zip file"}%</label> <span class="foswikiGrayText">%MAKETEXT{"Extracts and uploads individual file in zip archive."}%</span>
 <tr>
  <td align="right">
   Batch Upload:
  </td><td>
   <input type="checkbox" name="batchupload" %BATCHUPLOADCHECKBOX% />Extract Files and Attach them to the Topic
  </td>
 </tr>

In addition, use configure to set the $Foswiki::cfg{Plugins}{BatchUploadPlugin}{usercontrol} option to true.

Caveats

Further Development

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.

Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".

If you have any problems, or if the extension isn't available in configure, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.

Plugin Files

File: Description:
data/System/BatchUploadPlugin.txt Documentation
lib/Foswiki/Plugins/BatchUploadPlugin.pm Perl module
lib/Foswiki/Plugins/BatchUploadPlugin/Config.spec Configuration Items

Plugin Info

Plugin Author(s): Foswiki:Main.AndrewJones, Foswiki:Main.ArthurClemens, Foswiki:Main.MartinCleaver
Copyright ©: Foswiki:Main.AndrewJones, Foswiki:Main.ArthurClemens, Foswiki:Main.MartinCleaver
License: GPL
Plugin Release: 1.1
Plugin Version: 6276 (2010-02-11)
Change History:  
11 Feb 2010 Foswiki:Main.AndrewJones: v1.1 - Minor doc updates (Foswikitask:8467). Thanks to Foswiki:Main.BryanThale.
19 Mar 2009 Foswiki:Main.AndrewJones: v1.0 - Ported to Foswiki; Small code fixes (using Foswiki API); Doc update
09 Jul 2008 TWiki:Main.MarkusUeberall: Added support for zip file comments. All individual files now inherit the hide and link flags in the same way they inherit the comment specified in the upload form.
21 Mar 2007 TWiki:Main.ScottHoge: added usercontrol cfg, to allow global control of upload as in v1.1
20 Feb 2007 TWiki:Main.MartinRothbaum, TWiki:Main.SopanShewale: added option to enable/disable unzip-and-attach behavior via cgi parameter.
23 Dec 2006 TWiki:Main.ArthurClemens: Cleaned up and repackaged. Zipped files are now checked against the TWiki upload filter - for instance php files will get a .txt extension; spaces in zipped filenames will be changed to underscores. If a comment is entered when uploading a zip, the comment text will be assigned to all new attachments. After successful upload you will no longer see an error screen.
31 Oct 2004 TWiki:Main.MartinCleaver - initial version as plugin
09 Apr 2004 TWiki:Main.DiabJerius
17 Nov 2003 TWiki:Main.JohannesMartin
20 Mar 2003 TWiki:Main.RonKellam
16 Aug 2002 TWiki:Main.ThomasWeigert
14 Jan 2002 TWiki:Main.RyanFreebern
30 Oct 2001 TWiki:Main.VitoMiliano
Dependencies:
NameVersionDescription
Archive::Zip>=1.18Required.
Plugin Home: http://foswiki.org/Extensions/BatchUploadPlugin
Support: http://foswiki.org/Support/BatchUploadPlugin

Related Topics: DefaultPreferences, SitePreferences, Plugins spacer