beforeAttachmentSaveHandler(\%attrHash, $topic, $web )

  • \%attrHash - reference to hash of attachment attribute values
  • $topic - the name of the topic in the current CGI query
  • $web - the name of the web in the current CGI query
This handler is called once when an attachment is uploaded. When this handler is called, the attachment has not been recorded in the database.

The attributes hash will include at least the following attributes:

  • attachment => the attachment name
  • comment - the comment
  • user - the user's TWiki user object
  • tmpFilename - name of a temporary file containing the attachment data

Since: TWiki::Plugins::VERSION = '1.023'

Topic revision: r26 - 16 Jun 2006 - 18:31:30 - MeredithLesly
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo