appsmithorg / appsmithorg/appsmith

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

Open
#9,746 12 comments 0 reactions 0 assignees View on GitHub
Bug Community Reported Document Viewer Widget Low Production Query Widgets & IDE Pod Widgets & Accelerators Pod Widgets Product
Dominant language
TypeScript
Stars
40.9k
Forks
4.8k
Avg merge
1d 22h
Merged PRs (30d)
45

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.