Content-Disposition
In a regular HTTP response, the Content-Disposition
response header is a header indicating if the content is expected to be displayed inline in the browser, that is, as a Web page or as part of a Web page, or as an attachment, that is downloaded and saved locally.
Safe to Use
Content-Disposition
is considered safe to use.
It’s supported by 94% of global browsers.
Browsers
Version Breakdown
Full Support
Full Support
Full Support
Full Support
From version 82, if an <a>
element's download
attribute is set (for a same-origin URL) then the inline
directive is ignored. Earlier versions did not match the specification and respected the header directive over the attribute. See bug 1658877.
Full Support
From version 82, if an <a>
element's download
attribute is set (for a same-origin URL) then the inline
directive is ignored. Earlier versions did not match the specification and respected the header directive over the attribute. See bug 1658877.
Full Support
Full Support
Full Support
Full Support
Full Support
Full Support
Full Support
Full Support
See Also
- HTML Forms
- The
Content-Type
defining the boundary of the multipart body. - The
FormData
interface used to manipulate form data for use in theXMLHttpRequest
API.