Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-3802

BinariesServlet - Use handle node name as Content-Disposition filename by default

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.0
    • Component/s: None
    • Labels:
      None
    • Similar issues:
    • Processed by team:
      Platform
    • Sprint:
      Platform Sprint 140

      Description

      In the "JCR property name configuration" section [1], it says we can configure a custom jcr property name on hippo:resource node (e.g, "demosite:filename") if we want to specify content disposition filename header.
      However, it's not really common to add a custom property there in most projects.
      Therefore, I think it would be nice if it uses the handle node name by default for that (e.g, "example.pdf") when content disposition header is turned on.

      BTW, if content disposition filename header is not enabled, sometimes the link could look very weird especially when the link is generated from a content-block resource link, showing the link node path, not the handle path.

      [1] https://www.onehippo.org/10/library/concepts/images-and-assets/content-disposition.html

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wko Woonsan Ko
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: