Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17754

Allow to force-download attachments with a given mimetype even if they are added by a PR user

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 12.10
    • 10.11.8, 11.10.4, 12.7
    • Old Core
    • None
    • Mozilla Firefox 80.0.1, Google Chrome 85.0.4183.83
    • Unit
    • Unknown

    Description

      Steps to reproduce:

      • Go to xwiki.properties
      • open WEB-INF/xwiki.properties and go to the Attachment section
      • uncomment the line with the default backlist and add to it a MIME-type , e.g.: application/pdf or image/png
      • save the modifications and restart the server
      • Go to in the wiki and open a page with an attachment pdf if you added application/pdf or a png image if you added image/png

      Make sure you don't force the pdf files to be automatically downloaded from your browser's setting.

      Expected results:

      • The attachment is downloaded

      Actual results

      • The attachment is opened in browser

      Attachments

        Activity

          People

            surli Simon Urli
            andreic Camelia Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: