일단 파이어베이스 문제인지 강의 내용에 나와있는 ref.getdownloadURL() 형태로는 불러올 수 가 없습니다.
그렇기 때문에 import 쪽에 getDownloadURL을 추가해주시고
import { getStorage, ref, uploadBytes, getDownloadURL } from "firebase/storage";
이후에
let downloadURL = await getDownloadURL(ref(storage, `user_image/${user.uid}`));
위와 같이 해주면 되겠습니다. 또한 403 에러가 나오신다면
규칙 문제이니
allow read, write: if true;
로 바꿔주시면 되겠습니다
참고 문헌 : https://stackoverflow.com/questions/50432995/firebase-cloud-storage-permission-denied-could-not-perform-this-operation-fire
https://firebase.google.com/docs/storage/web/download-files#web-version-9_1
The Community-Driven Education is the best to help us and provide great results. The Project Ownership Where it Belongs is amazing and I like that you shared this post for us to know about these ideas. Also from HP Exam HPE2-T37 Dumps I realize that it is more helpful for us.
답글