Html header download file name
Used on the body itself, Content-Disposition has no effect. Only the value form-data , as well as the optional directive name and filename , can be used in the HTTP context. The first parameter in the HTTP context is either inline default value, indicating it can be displayed inside the Web page, or as the Web page or attachment indicating it should be downloaded; most browsers presenting a 'Save as' dialog, prefilled with the value of the filename parameters if present.
Earlier Firefox versions prioritize the header and will display the content inline. The first directive is always form-data , and the header must also include a name parameter to identify the relevant field. Collectives on Stack Overflow.
Learn more. Asked 12 years, 11 months ago. Active 5 months ago. Viewed k times. Improve this question. Top-Master 4, 3 3 gold badges 20 20 silver badges 40 40 bronze badges. Wilco Wilco Similar issue here stackoverflow.
Add a comment. Active Oldest Votes. Improve this answer. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast An oral history of Stack Overflow — told by its founding team. Millinery on the Stack: Join us for Winter Summer?
Bash, ! Featured on Meta. New responsive Activity page. Visit chat. Linked 6. Collectives on Stack Overflow. Learn more. Change name of download in javascript Ask Question. Asked 9 years, 8 months ago. Active 1 year, 3 months ago.
Viewed 52k times. Improve this question. Intra Intra 1, 3 3 gold badges 18 18 silver badges 23 23 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Dennis Dennis 31k 10 10 gold badges 61 61 silver badges 77 77 bronze badges.