Skip to content

Added Content-Disposition header to attachment download endpoint response headers#1032

Open
jissepo wants to merge 3 commits intozone-eu:masterfrom
jissepo:content-disposition-header-in-attachment-download
Open

Added Content-Disposition header to attachment download endpoint response headers#1032
jissepo wants to merge 3 commits intozone-eu:masterfrom
jissepo:content-disposition-header-in-attachment-download

Conversation

@jissepo
Copy link
Copy Markdown
Contributor

@jissepo jissepo commented Mar 23, 2026

The HTTP Content-Disposition header indicates whether content should be displayed inline in the browser as a web page or part of a web page or downloaded as an attachment locally.

Since this is a download endpoint, it makes sense for it to always also return the content disposition header, with disposition set to attachment.

@NickOvt NickOvt requested a review from andris9 March 23, 2026 13:54
}

if (attachmentFilename) {
headers['X-Filename'] = attachmentFilename;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add non standard filename header? The correct place to include the filename is Content-Disposition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants