Tags:
create new tag
, view all tags

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 - 2006-06-16 - 18:31:30 - MeredithLesly
 
TWIKI.NET
This site is powered by the TWiki collaboration platform
Ideas, requests, problems regarding TWiki? Send feedback
Copyright © 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.