Uploaded image for project: 'XNAT'
  1. XNAT
  2. XNAT-6913

Set response content-type to application/pdf for pdf files

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7, 1.8
    • 1.8.4
    • None
    • None
    • Rank:
      0|ii1zpr:

    Description

      Setting content-type to application/pdf allows in-browser pdf rendering (as opposed to download). Currently, pdfs are served as octet-stream, which means they are always downloaded. You may still set the site config allowHtmlResourceRendering (formerly security.allow-HTML-resource-rendering) to false, which will set Content-Disposition attachment=true, which should force a download rather than inline viewing.

      Attachments

        Activity

          People

            kate@radiologics.com Kate Alpert
            kate@radiologics.com Kate Alpert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: