gpt4 book ai didi

angularjs - 获取 gs://example.appspot.com/images net::ERR_UNKNOWN_URL_SCHEME

转载 作者:行者123 更新时间:2023-12-03 19:54:15 28 4
gpt4 key购买 nike

我最近收到此错误消息,不知道为什么。

GET gs://example.appspot.com/images net::ERR_UNKNOWN_URL_SCHEME



以下是我对存储服务的引用:
var storage = firebase.storage();

var storageRef = storage.ref();

var storageRefImgs = storageRef.child('images');

我有谷歌浏览器 51,我正在运行 Windows 10。

最佳答案

好像你把 gs:// URL(这是一个内部 Google 存储引用)到无法处理它的控件(例如 img 标记)。

如果您想在 img 中使用该文件标签,你必须get the download URL为文件。从文档:

storageRef.child('images/stars.jpg').getDownloadURL().then(function(url) {
// Get the download URL for 'images/stars.jpg'
// This can be inserted into an <img> tag
// This can also be downloaded directly
}).catch(function(error) {
// Handle any errors
});

关于angularjs - 获取 gs://example.appspot.com/images net::ERR_UNKNOWN_URL_SCHEME,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38070283/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com