'how to get data URL from upload bytes in firesbase?
How to get data URL from snapshot after uploading to storage in firebase, I cannot find the link in the snapshot, there must be another method to complete the action.
if (input?.files![0]) {
const storage = getStorage();
const storageRef = ref(storage, `profiles/${_authContext.currentUser.uid}/${input?.files![0].name}`);
// 'file' comes from the Blob or File API
uploadBytes(storageRef, input?.files![0]).then((snapshot) => {
console.log(snapshot);
console.log('Uploaded a blob or file!');
});
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
