-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Type: Feature RequestNew feature or requestNew feature or request
Description
Description
A user may want to upload, update, and display a profile picture to personalize their profile. This feature requires implementing the backend logic for handling user profile picture uploads. The process should involve receiving an image file, uploading it to Firebase Storage, and then saving the public URL of that image to the user's profile in the PostgreSQL database.
Criteria
- An API endpoint is created to handle profile picture uploads for a specific user & depends on the user being signed in.
- When an image is sent to the endpoint, it is successfully uploaded to our Firebase Storage bucket.
- Upon successful upload, the public URL returned by Firebase is saved in the
profile_picture_urlcolumn in theuser_profilestable for the corresponding user. - The endpoint should also handle updating an existing profile picture by replacing the old file in Firebase Storage.
- The user's profile data, when fetched, should include the correct
profile_picture_url. - Add basic validation for file size and type (e.g., JPEG, PNG).
Metadata
Metadata
Assignees
Labels
Type: Feature RequestNew feature or requestNew feature or request