【发布时间】:2018-08-20 12:06:19
【问题描述】:
我已将我的 html 文件保存到具有公共读取权限的谷歌云存储中。 当我尝试打开 html 文件时,Chrome 会自动在本地下载 HTML 文件,而不是在浏览器选项卡中打开它。
代码:
return storage.UploadObject(
bucket: BucketName,
objectName: objectName,
contentType: "text/html",
source: valStream,
options: new UploadObjectOptions { PredefinedAcl = publicRead }
);
【问题讨论】:
-
可以设置chrome打开files
标签: c# html google-app-engine google-cloud-storage