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'

Edit | Attach | Watch | Print version | History: r26 < r25 < r24 < r23 < r22 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r26 - 2006-06-16 - MeredithLesly
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2015 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.