diff --git a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/servlets/DownloadServlet.java b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/servlets/DownloadServlet.java index 5f0d5827de..e8cd7cb49f 100644 --- a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/servlets/DownloadServlet.java +++ b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/servlets/DownloadServlet.java @@ -191,7 +191,7 @@ private void sendResponse(InputStream stream, long size, String mimeType, String response.setContentLength((int) size); } if (inline) { - response.setHeader(CONTENT_DISPOSITION_HEADER, "inline"); + response.setHeader(CONTENT_DISPOSITION_HEADER, "inline; filename=\"" + filename + "\""); response.setHeader(CSP_HEADER, "sandbox"); } else { response.setHeader(CONTENT_DISPOSITION_HEADER, "attachment; filename=\"" + filename + "\"");