Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-47579

Download in Documents and Media may display the image in the browser instead of downloading depending on the extension of the document

    Details

      Description

      Steps to reproduce the issue:

      1. Upload a image with .jpg extension to Documents and Media.
      2. When viewing the document click "Download".

      You will see that the image is displayed in the browser but it's not downloaded as a attachment.

      We should use the request header HttpHeaders.CONTENT_DISPOSITION_ATTACHMENT instead of INLINE and then the browser should download it.

        Attachments

        1. fixed.png
          fixed.png
          129 kB
        2. reproduced.png
          reproduced.png
          971 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 28 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M1