I have uploaded an image to Firebase storage, but when I try to retrieve the URL, I get "uploaded_image.ref is not a function" .....
HTML
<form>
<input id="select_Image" type="file" required>
<button type="submit">Upload Image</button>
</form>
JS
let image_url = "";
function uploadImage {
const image = input_image.files[0];
const path = storage.ref("imagefolder/" + image.name);
const uploaded_image = path.put(image);
const the_url = uploaded_image.ref().getDownloadURL();
image_url = the_url;
alert(image_url);
}