Redirect to raw format for PDF attachments

Description

Makes links to PDF attachments go directly to the raw file rather than the preview page (which doesn't actually preview the file).

To delete attachments, you'll need to enter an explicit URL: /attachment/realm/filename.pdf?action=delete.

Bugs/Feature Requests

Existing bugs and feature requests for PdfRedirectorPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out PdfRedirectorPlugin from here using Subversion, or browse the source with Trac.

Example

Upload a PDF and click on it. You'll be able to download it immediately instead of having to click through the preview page.

Recent Changes

[11799] by rjollos on 07/26/12 08:15:04

Refs #8066: Redirect TracLink? to a PDF in the repository.

[11784] by rjollos on 07/25/12 21:48:07

Fixes #8583: version 0.2

  • Allow attachment to be deleted if action is delete. To delete an attachment, enter the following URL: /attachment/realm/filename.pdf?action=delete. Thanks to hasienda for the patch.
  • Formatting and style changes to source code.

[11782] by rjollos on 07/25/12 21:17:34

Renamed 0.11 directory to trunk.

[6430] by nicholasbs on 08/26/09 16:39:18

Fix #5723 (link to PDF doesn't work if filename contains non-URL allowed characters)

Author/Contributors

Developed at The Open Planning Project.

Author: nicholasbs
Maintainer: none
Contributors: k0s