Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-3265

Wagtail: add support for viewing pdf files in browser

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Wagtail adds `Content-disposition: attachment` to PDF file requests, causing them to be downloaded instead of opening them in the browser window.

      Resources:

      Steps to reproduce
      1. Go to https://ampgateway.org
      2. Click on the pdf link: https://ampgateway.org/documents/1/AMP-Gateway-Workshop-Dec2019-at-NIST.pdf

        Attachments

          Activity

            People

            • Assignee:
              marcuschristie Marcus Christie
              Reporter:
              marcuschristie Marcus Christie
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: