cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: Answered

Make revisions when using UpdateAttachmentsPlugin

Hello,

when there is an Attachment available, the UpdateAttachmentsPlugin adds the link to this attachment to the Topic. Is it possible, that the plugin checks, if there is an older version of this file available? If yes, the attachment,v file will be created automatically and the new file will be a new revision.

-- KlausReithmaier - 25 Feb 2013

UpdateAttachmentsPlugin doesn't update the attachments themselves, it synchronizes the topic metadata view of the attachments, with the actual contents of the directory. So the flow is:
  • Some external action places a file in the pub/Web/Topic/... directory.
  • UpdateAttachmentsPlugin rest handler detects that the topic metadata list of attachments is out of sync with the contents of the pub directory, so the topic is updated.

It would be up to the external process that placed the attachment file in pub/Web/Topic/ directory to detect that an older version is there, and to "rcs checkin" the new attachment instead of just writing it to the directory.

-- GeorgeClark - 07 Apr 2013
 

QuestionForm edit

Subject Using an extension
Extension UpdateAttachmentsPlugin
Version Foswiki 1.1.7
Status Answered
Related Topics
Topic revision: r2 - 07 Apr 2013, GeorgeClark - This page was cached on 22 Aug 2018 - 03:45.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy