Opened 4 years ago

Last modified 4 years ago

#10489 new enhancement

Provide a link for deleting PDF attachments

Reported by: rjollos Owned by: nicholasbs
Priority: normal Component: PdfRedirectorPlugin
Severity: normal Keywords:
Cc: hasienda Trac Release: 0.12

Description (last modified by rjollos)

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 4 years ago by rjollos

  • Description modified (diff)

comment:2 Changed 4 years ago by rjollos

  • Description modified (diff)

Fixed proposed delete button href.

comment:3 Changed 4 years ago by rjollos

It looks like I made an error when posting the workaround in PdfRedirectorPlugin#Descripion. I had the workaround described as:


but, it should be:


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.

Add Comment

Modify Ticket

as new The owner will remain nicholasbs.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.