Skip to content

Commit 9fd09bf

Browse files
feat: avatar upload to S3, proxied through the backend (#733) (#872)
- POST /api/users/profile/avatar: authenticated multipart upload - Accepts field name 'file' or 'avatar' - Decodes image, resizes to 256x256, re-encodes as JPEG (quality 85) - Uploads to S3 via aws-sdk-s3 (credentials from standard AWS chain) - Saves public URL to users.avatar_url, invalidates Redis cache - Config: AWS_S3_BUCKET, AWS_S3_REGION, AWS_S3_PUBLIC_URL_BASE env vars
1 parent f4cfc1a commit 9fd09bf

5 files changed

Lines changed: 1951 additions & 86 deletions

File tree

0 commit comments

Comments
 (0)