eligrey / FileSaver.js

An HTML5 saveAs() FileSaver implementation
https://eligrey.com/blog/saving-generated-files-on-the-client-side/
Other
21.39k stars 4.38k forks source link

What does it mean to "use the Content-Disposition header"? #808

Open awdm opened 3 months ago

awdm commented 3 months ago

The documentation says that for a file received from a remote server, one should "first try to use Content-Disposition attachment response header". But a header ist just some meta info, not a function I can call. If I follow the link, it explains what information the header contains, but still doesn't provide any clarification.

So what exactly is meant with "using the header"?