Open bakeiro opened 12 months ago
do not permit more than 2MB
define first these points:
upload (profileId, categoryName, imageUrl) get (profileId, category) remove (imageUrl)
Consensus from 5/28 developer meeting is that this should be gated behind the strong verification feature to prevent abuse we can't sufficiently moderate.
Implementation can be of multiple albums that will have an owner, a picture order, a caption for each photo, and a photo count and size limit.
Some relevant commentary on forums https://community.couchers.org/t/how-many-profile-photos-should-users-be-allowed-to-upload/65
More discussion on the implementation is in https://github.com/Couchers-org/couchers/issues/4092. As I haven't worked on it for a while, I will un-assign myself until I see time to work on it.
Me as frontend developer: I need an API link, some documentation/instructions of how to upload multiple pictures (it can be one pic by one if it's easier)
Tasks: Re-use/create an endpoint which receives images and uploads it somewhere, maybe receiving the user id as well to link the image to the profile
Notes: frontend task: https://github.com/Couchers-org/couchers/issues/4086 https://github.com/Couchers-org/couchers/blob/develop/docs/uploads.md