Option to set "Content-Disposition" HTTP header value

Created on 15 March 2017, almost 8 years ago
Updated 16 November 2023, about 1 year ago

Problem/Motivation

Chrome and Firefox download a CSV file as-is, but Safari instead prints the CSV data directly to the browser window. By setting the Content-Disposition HTTP header, we can force Safari to download the file. This would be good practice regardless.

See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Dispos...

Proposed resolution

CSV Serialization should provide an option to set the Content-Disposition HTTP header to "inline" or "attachment". It should probably default to "attachment".

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024