appsmithorg / appsmithorg/appsmith

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

Đang mở
#9,746 12 bình luận 0 reaction 0 người được giao Xem trên GitHub
Bug Community Reported Document Viewer Widget Low Production Query Widgets & IDE Pod Widgets & Accelerators Pod Widgets Product
Ngôn ngữ chính
TypeScript
Star
40.9k
Fork
4.8k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
45

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.