我的问题是,对于每个没有简历的候选人,我仍然在控制台中收到 404 错误。 (我也尝试过 onResolve、onReject,但问题是一样的)。
非常感谢您的任何提示!
这是我的代码:
firebase.storage().ref().child('cvs').child(doc.id).child('CV').getDownloadURL()
.then(function (url) {
document.getElementById('dwlCvBtn' + doc.id).classList.remove('d-none')
}).catch(function (error) {
// A full list of error codes is available at
// https://firebase.google.com/docs/storage/web/handle-errors
switch (error.code) {
case 'storage/object-not-found':
document.getElementById('uploadCvBtn' + doc.id).classList.remove('d-none')
break;
case 'storage/unauthorized':
// User doesn't have permission to access the object
break;
case 'storage/canceled':
// User canceled the upload
break;
case 'storage/unknown':
// Unknown error occurred, inspect the server response
break;
}
});