|Version 9 (modified by 4 years ago) (diff),|
Redirect to raw format for PDF attachments
Notice: This plugin is unmaintained and available for adoption.
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:
If you have any issues, create a new ticket.
Download the zipped source from [download:pdfredirectorplugin here].
Upload a PDF and click on it. You'll be able to download it immediately instead of having to click through the preview page. If you want the PDF to render in the browser, you'll need to make the following configuration changes:
[attachments] render_unsafe_content = true [browser] render_unsafe_content = true
- 16501 by rjollos on 2017-04-15 08:25:24
- 13321 by rjollos on 2013-07-02 22:41:39
PEP-0008 whitespace changes (Refs #11204).
- 13320 by rjollos on 2013-07-02 22:41:31
Redirect on file extensions specified by user (Fixes #11204).
Added an option
[pdfredirector] extensionsfor specifying a comma-separated list of file extensions that should be redirected on. The default is
Developed at The Open Planning Project.