appsmithorg / appsmithorg/appsmith

[Bug]: Document Viewer does not display PDFs with Content-Disposition: attachment as header

未关闭
#9,746 12 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Bug Community Reported Document Viewer Widget Low Production Query Widgets & IDE Pod Widgets & Accelerators Pod Widgets Product
主要语言
TypeScript
星标
40.9k
派生
4.8k
平均合并
1 天 22 小时
30 天内合并 PR
45

描述

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

In the Document Viewer, when linking a PDF with ` Content-Disposition: attachment` as a response header, the file is downloaded in the browser. It should be displayed on the screen instead.

### Steps To Reproduce

1. Insert a Document Viewer widget
2. Link a PDF with ` Content-Disposition: attachment` as a response header.

### Environment

Production

### Version

Self-Hosted

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。