0
刪除文件我想從火力存儲火力地堡聚合物從存儲
service firebase.storage {
match /b/summit.appspot.com/o {
match /{allPaths=**} {
allow read, write: if request.auth != null;
}
}
}
這些都是我的存儲規則刪除一些文件。 我想通過使用演示功能
_demoremove: function() {
var storageRef = firebase.storage().ref();
// Create a reference to the file to delete
var desertRef = storageRef.child('https://firebasestorage.google'); //i js copied a download-url from my one of the files in the storage
// Delete the file
desertRef.delete().then(function() {
// File deleted successfully
console.log('done');
}).catch(function(error) {
// Uh-oh, an error occurred!
console.log(error);
});
}
有什麼不對的格式來測試功能?我得到一個錯誤object is not found