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