File download content type
Please save it as a file, preferably named picture. Means "This is a PNG image. Please display it unless you don't know how to display PNG images. Otherwise, or if the user chooses to save it, we recommend the name picture. Of those browsers that recognise inline some would always use it, while others would use it if the user had selected "save link as" but not if they'd selected "save" while viewing or at least IE used to be like that, it may have changed some years ago.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more.
Ask Question. Asked 8 years ago. Active 2 years, 2 months ago. Table of Contents. Improve Article. Save Article. Like Article. Last Updated : 29 Jul, Next HTTP headers. Recommended Articles. Article Contributed By :. Everything works as expected.
We have gone over the details about downloading files via Web API. I hope you have learned something new. Thanks for reading. Senior Application Developer. I write blogs about. Bursts of code to power through your day. Web Development articles, tutorials, and news. Sign in. Changhui Xu Follow. Written by Changhui Xu Follow. More From Medium. My First Portfolio.
This works best when you only want to apply content-disposition to a few files on your system and don't require the overhead of ASP. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Please rate your experience Yes No.
0コメント