NOTE:
I have to replace the angle brackets parentheses for me to paste the code:
onClick={(e)=)e.currentTarget.querySelector("#handleAddPhoto").click()}
function handleAddPhoto(e){(async()=){
const file = e.target.files[0]
const refFile = firebase.storage().ref(`/userProfiles/${currentUser.uid}`)
const put = await refFile.child(file.name).put(file);
const url = await put.ref.getDownloadURL();
console.log(url)
})()};
PAT: / rezatahirkheli
PP: https://www.paypal.com/paypalme/rezat...
BTC: 3EUQBWZKX9Vcwdffd3cUGATQopxrAQQxJ9
LTC: MBXE6hJgxxFYSD8SjmR7sHCHGTqFXmNGoU
GFM: https://gofund.me/7d6500bd
Watch video Using React to Upload to Firebase Storage and retrieving it's URL (using the Async/Await method) online without registration, duration hours minute second in high quality. This video was added by user ZeroLife 25 July 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 500 once and liked it 4 people.