I have got an asp file with the following header Response.ContentType = "application/vnd.ms-excel" ,it displays the file in an excel format.This works in IE and firefox but not in safari. Any ideas why?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Well, you can try forcing it like so:
Content-type: application/force-download
Content-disposition: attachment; filename="somefile.txt"
Please say if it works for you. Hope it helps.