Opened 12 years ago
Last modified 12 years ago
#10489 new enhancement
Provide a link for deleting PDF attachments
Reported by: | Ryan J Ollos | Owned by: | Nicholas Bergson-Shilcock |
---|---|---|---|
Priority: | normal | Component: | PdfRedirectorPlugin |
Severity: | normal | Keywords: | |
Cc: | Steffen Hoffmann | Trac Release: | 0.12 |
Description (last modified by )
The ability to directly delete PDF attachments with a button press is lost with this plugin, but fortunately we have a workaround, described in PdfRedirectorPlugin#Description.
It would be nice to have a more straightforward way to delete attachments. A delete button (e.g. an X) could be added next to the download link (the button could be added by ITemplateStreamFilter.filter_stream
). This delete button could link to the /attachment/realm/id/filename?action=delete
page.
Attachments (0)
Change History (3)
comment:1 Changed 12 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 12 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 12 years ago by
It looks like I made an error when posting the workaround in PdfRedirectorPlugin#Descripion. I had the workaround described as:
/attachment/realm/filename.pdf?action=delete
but, it should be:
/attachment/realm/id/filename.pdf?action=delete
which I corrected just now.
Also, when opening this ticket, I was only thinking of ticket attachments. The same solution should work for wiki page and milestone attachments however. Are there any other core Trac modules supporting attachments that I'm not thinking of?
Supporting every plugin that provides an attachment module, such as FullBlogPlugin, becomes less practical.
Fixed proposed delete button href.