As I work on building my online store, I am also diving into learning Vue.js. Currently, I'm facing a challenge with uploading product images to Firebase. It seems that storageRef.put is not functioning as expected. My project utilizes Vue.js 3 and Firebase 9 for its backend.
uploadImage(e) {
const file = e.target.files[0];
const storage = getStorage();
const storageRef = storageReference(storage, 'products/' + file.name);
storageRef.put(file);
}