Skip to content
Discussion options

You must be logged in to vote

Right now, the file download endpoint in Langflow always sets the Content-Disposition header to "attachment", which forces browsers to download the PDF instead of displaying it inline—even if you open the link in a new tab. To display the PDF directly in the browser, the backend would need to set Content-Disposition to "inline" for PDF files, but this isn't supported by the current API or any configuration options (source).

If you want inline display, the backend code would need to be changed to either add a new endpoint or a parameter that sets Content-Disposition to "inline" for PDFs. As it stands, there’s no built-in way to do this just by changing the URL or using markdown in chat.

T…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@markoviksten
Comment options

@dosubot
Comment options

@markoviksten
Comment options

@dosubot
Comment options

Answer selected by markoviksten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants