internal package Foswiki::Plugins::BatchUploadPlugin

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview

Store callback called before the attachment is further processed. Preliminary attempt to tackle nested zips - does not actually work yet. Each time we fall through beforeUploadHandler to the actual attaching, other attachments get lost.

Checks if a file is a zip file. Returns true if the file has a zip extension, false if not.

Return: 1 if successful, 0 if not successful.

changed to work around a race condition where a symlink could be made in the temp directory pointing to a file writable by the CGI and then a zip uploaded with that filename, also solves the problem if two people are uploading zips with some identical filenames.

Open a zip and perform a sanity check on it. Returns the opened zip object (to be passed to doUnzip) on success, a string saying the reason for failure.

Topic revision: r1 - 27 Feb 2018, UnknownUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback