문제

I created an MVC page which returns a vCard (Response.ContentType = "text/vcard";). The param that I pass in on the URL route is the user's account name (the first part of their e-mail address). When I hit the page, I get a dialog box prompting to save the file, but the file type of the Save dialog box is also the user's account name, when it should be .VCF. How can I set the default file type in the Save dialog box to be .VCF?

Thanks, Jay

도움이 되었습니까?

해결책

Set Content-Disposition to attachment; filename=SOmeName.vcf

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top