Tags:
create new tag
, view all tags

Feature Proposal: Configurable Attachment Behavior

Motivation

This addresses a special attachment case: A user clicks on the "manage" link of an existing attachment of name FileOld.txt, and attaches a new file called FileNew.txt. The current behavior is that a new attachment is created with the name of the uploaded file.

In an older TWiki release, the uploaded file got the name of the existing attachment, regardless of the local file name. Yet an older release had the current behavior. This has been discussed back and forth, TWikibug:Item6533, TWikibug:Item5511, UpdateAttachmentsDontWorkAsExpected, AttachmentLogicFlawed, and has come up recently, Support.SID-01448.

Since there is no consensus on the behavior it is best to make it configurable.

Description and Documentation

Add new {AttachWithSameName} configure setting. If set, the uploaded file name will be changed to the name of the existing one. If multiple files are uploaded, only the first one gets the name of the existing one. An error message is shown if the file type of the uploaded file differs from the existing one.

Default is 0, e.g. the current behavior is the default.

Impact

Implementation

-- Contributors: PeterThoeny - 2012-06-16

Discussion

Feature accepted by vote in JerusalemReleaseMeeting2012x06x22.

-- PeterThoeny - 2012-06-22

Implemented and checked into SVN trunk on 2012-06-22.

-- PeterThoeny - 2012-07-03

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2012-07-03 - PeterThoeny
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.