xxxxxxxxxx
async function uploadBlob(file: Blob | Uint8Array | ArrayBuffer, path: string) {
try {
const uploadTaskSnapShot = await storage.ref(path).put(file);
let url: string = await uploadTaskSnapShot.ref.getDownloadURL();
return url;
} catch (error) {
throw new Error("Could not upload file");
}
}