File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 ref ,
33 uploadBytes ,
44 uploadBytesResumable ,
5- getDownloadURL ,
5+ getDownloadURL as firebaseGetDownloadURL ,
66 deleteObject ,
77 listAll ,
88 getMetadata ,
@@ -54,7 +54,7 @@ export class StorageService {
5454 } ,
5555 async ( ) => {
5656 try {
57- const downloadURL = await getDownloadURL ( uploadTask . snapshot . ref ) ;
57+ const downloadURL = await firebaseGetDownloadURL ( uploadTask . snapshot . ref ) ;
5858 onComplete ( downloadURL ) ;
5959 } catch ( error ) {
6060 onError ( error as Error ) ;
@@ -70,7 +70,7 @@ export class StorageService {
7070 static async getDownloadURL ( path : string ) : Promise < string > {
7171 try {
7272 const storageRef = ref ( storage , path ) ;
73- return await getDownloadURL ( storageRef ) ;
73+ return await firebaseGetDownloadURL ( storageRef ) ;
7474 } catch ( error ) {
7575 console . error ( 'Error getting download URL:' , error ) ;
7676 throw error ;
You can’t perform that action at this time.
0 commit comments