Tags:
attachments1Add my vote for this tag create new tag
, view all tags

Allow Renaming of Attachments

There are many times when changing the name an attached file is listed as in the FileAttachment table would be very helpful. A user recently uploaded multiple chapters to a document we were working on and included the version number in the file name. (They did not yet understand TWiki's file version tracking system.) Of course, after the next revision, the file names displayed in the table were misleading. The only way I could change the file names was to delete all those files and upload the same files with new names.

I noticed that you can actually replace a file with a new file that has a totally different name (by clicking on "action" and then upload a file with a different name) and yet the name displayed in the table remains unchanged. If I then This suggests to me that the displayed name is not actually linked to the file it refers to. So why not create a way for the user to change the name displayed for an attachment?

Perhaps we should simply provide an option for designating what a file is refered to when it is uploaded - and then allow this to be modified. This approach would address some of the unanswered questions posed in AttachWithDiffName.

-- LynnwoodBrown - 21 May 2003

As far as I can tell, the attachment feature in TWiki works exactly as it was designed. My point has to do with usability design and, as far as I can tell, will require programming new features that are not there currently. I suppose the line between poor usability and a bug is not quite as clear-cut as this - but I still think this is closer to a feature request than a bug.

I'd really like to know is how hard would it be to accommodate this change in how attachments are handled. Any core team members or other knowledgeable folks willing to comment on this?

-- LynnwoodBrown - 21 May 2003

This shouldn't be that difficult to achieve, but the rename function that does topic renaming/moving and attachement moving is already fairly complex.

-- JohnTalintyre - 22 May 2003

Cases that must be considered

Renaming a file A to B can collide with an existing File B

When a rename action matchs a filename already exist, the renaming nomally should be prevented by displaying an Error: "Filename B already exist, cannot rename file"

Of course if File B is the predecessor of A the renaming could update File B (timestamp B < A) and delete File A, but this is too complex and would end up in an inadequate high implementation effort.

Preserve filetype

Renaming of files should not touch the filetype as this would make the file inaccessable in most cases. So only the name before the last dot should be changeable

-- AndreUlrich - 28 Feb 2004


Cleaned this topic up a litle bit -- AndreUlrich - 29 Feb 2004

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2004-02-29 - AndreUlrich
 
  • 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.