r7 - 22 Feb 2008 - 14:37:38 - MartinCleaverYou are here: TWiki >  Support Web > DeletingAttachmentsWithSameName
Tags:
, create new tag

Question

If you try to delete an attachment that already exists in TrashAttachment, you will be given an error. Is there a way to get round this without manually moving/deleting the attachment in TrashAttachment? Should there be?

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins:  
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Missing functionality
-- AndrewRJones - 15 Dec 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

This is currently a limitation of TWiki. You need to move the previous attachment away, or delete the attachment to Trash.WebHome instead.

To clean up the attachments in Trash.TrashAttachment you can do one of this:

  • Rename Trash.TrashAttachment to Trash.TrashAttachment123, and recreate an empty Trash.TrashAttachment.
  • From the shell, delete data/Trash/TrashAttachment.txt* and pub/Trash/TrashAttachment/*, then create an empty Trash.TrashAttachment topic.

-- PeterThoeny - 16 Dec 2006

Yes, with emphasis, there should be a better way. This issue is bringing us around 2-4 user complaints that we have to deal with per week. If the attachment already exists in the trash, TWiki really needs to A) blow away the old deleted attachment or B) rename the old attachment -- just like the Trash in OS X, Windows, etc. do."

Evan Goer via Robert

-- RobertMiller - 14 Mar 2007

See ImproveAttachmentToTrashFlow request.

-- ArthurClemens - 14 Mar 2007

And Bugs:Item5384

-- MartinCleaver - 22 Feb 2008

 
Change status to:
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r7 < r6 < r5 < r4 < r3 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo