You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On selecting an image to upload, error in browser console
Error: Uncaught (in promise) FirebaseError: Firebase Storage: User does not have permission to access 'users/y3iPLGpfixTxRAEcVvfXXsRMJeT2/user_photos/cannabis_observer-icon-square.png'. (storage/unauthorized)
The text was updated successfully, but these errors were encountered:
The main thing missing I believe was that I had yet to publish the Firestore and Firebase Storage security rules. After publishing the rules and a minor refactor of the code, the user photo management functionality appears to work.
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'uid')
at updateUserPhoto (firebase.js:174:46)
at HTMLInputElement.uploadUserPhoto (user.js:30:247)
Error:
Uncaught (in promise) FirebaseError: Firebase Storage: User does not have permission to access 'users/y3iPLGpfixTxRAEcVvfXXsRMJeT2/user_photos/cannabis_observer-icon-square.png'. (storage/unauthorized)
The text was updated successfully, but these errors were encountered: