score:1

Accepted answer
const storageRef= storage.ref(productThumbnail.name);

storageRef.put(productThumbnail).then(() => {
    storageRef.getDownloadURL().then((postproductThumbnail) => {       
        setPostProductThumbnail(postproductThumbnail);
        dispatch(
            addProductStart({
                productCategory,
                productName,
                postproductThumbnail,
                productPrice,
                productDesc,
            })
        )
})

Related Query

More Query from same tag