[英]Mime Types with Google App Engine
I am trying to upload a game I made on unity. 我正在尝试上传我统一制作的游戏。 Whenever I run the html file it all works, but whenever I publish it says that the file failed to download.
每当我运行html文件时,所有文件都可以使用,但是每当我发布该文件时,都说该文件下载失败。 I realize this is because it doesn't recognize the file type .unity3d and that I need to add a mime type, but how?
我意识到这是因为它无法识别文件类型.unity3d,并且我需要添加mime类型,但是如何添加呢? I am using google app engine and I assume it is in the app.yaml where I need to add it.
我使用的是Google App Engine,我认为它在app.yaml中,需要在其中添加。
Store the .unity3d
file in Google Cloud Storage , and set the mime type on the object to application/vnd.unity
. 将
.unity3d
文件存储在Google Cloud Storage中 ,并将对象的mime类型设置为application/vnd.unity
。 Serve it via a URL to your user's browser by embedding the link in the HTML page that your app serves. 通过将链接嵌入应用程序所服务的HTML页面中,通过URL将其提供给用户浏览器。 If they have the unity3d player installed, the browser will know what to do at this point.
如果他们安装了unity3d播放器,浏览器此时将知道该怎么办。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.