另存为对话框未显示

时间:2015-06-27 06:00:03

标签: python google-app-engine http webapp2

我希望在Google App Engine应用程序(Webapp2)中通过HTTPHandler(GET)显示文件下载的另存为对话框。

虽然我使用附件内容配置,如:

   self.response.headers["Content-Type"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
   self.response.headers["Content-Disposition"] = "attachment; filename='test.xls'"

自动下载文件并且未显示“另存为”对话框

0 个答案:

没有答案
相关问题