In the upload hook, I have edited to the post to reflect the source code... thanks for the catch
varfirebaseConfig={// ADD YOUR FIREBASE CONFIGURATION};// Initialize Firebasefirebase.initializeApp(firebaseConfig);interfaceUploadDataResponse{metaData:firebase.storage.FullMetadata,downloadUrl:any};interfaceProgressResponse{value:number}// the firebase reference to storageconststorageRef=firebase.storage().ref();
In the upload hook, I have edited to the post to reflect the source code... thanks for the catch
There's no useRef, just
let ref = storageRef
That's the only mention of storageRef in the article. Where does it get its value?
i added more details, thanks
Thanks, I have a project where I'm going to use Firebase file upload in react shortly. I'll be gladly using your hook. Nice work!