You are here: Foswiki>Tasks Web>Item11844 (07 May 2014, MichaelDaum)Edit Attach

Item11844: UpdateAttachmentsPlugin auto-attaches image thumbnails

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: UpdateAttachmentsPlugin
Branches: trunk
Reported By: JozefMojzis
Waiting For:
Last Change By: MichaelDaum

Symptoms

The TopicInteractionPlugin attaching to the the topic thumbnail images like igp_abab3b2631407b50836ccdfb42413d8b_filename.jpg.

When run the update rest handler for the UpdateAttachmentsPlugin, like:
    ./rest /UpdateAttachmentsPlugin/update -topic Sandbox.TestTopic1 -user AdminUser

for the topic, what already contain attachments (with above thumbnails), the UpdateAttachmentsPlugin adds those thumbnails as regular attachments, so getting two attachments:
  • one attachment for the original, like filename.jpg
  • and another one for generated thumbnail, like igp_abab3b2631407b50836ccdfb42413d8b_filename.jpg

OFC, the TopicInteractionPlugin plugin generating another thumbnail, so get igp_abab3b2631407b50836ccdfb42413d8b_igp_abab3b2631407b50836ccdfb42413d8b_filename.jpg , and so on...

The UpdateAttachmentsPlugin should exclude the igp_ (thumbnail) files when generating the update.

Enhancement idea

The UpdateAttachmentsPlugin should remove the *,v files at the update, when the main file does not exists, so probably those attachments are already removed. If this behavior is dangerous, maybe should be configurable...

-- JozefMojzis - 09 May 2012

Improved the default {AttachFilter} setting.

Jozef, you might need to alter it on your install to exclude igp_.* files.

-- MichaelDaum - 07 May 2014
 
Topic revision: r4 - 07 May 2014, MichaelDaum
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