Avatars
Profile picture uploads and management in Account UI
When VITE_ENABLE_FILE_UPLOADS=true, Account UI provides avatar upload functionality.
Upload Flow
- User clicks their profile picture
- Image picker opens (supports JPG, PNG, WebP)
- Image is cropped to square
- Uploaded to R2/S3 storage
- Profile updated with new avatar URL
Requirements
VITE_ENABLE_FILE_UPLOADS=trueenvironment variable- R2 bucket or S3-compatible storage configured
- Upload endpoints available in your API
Related
- R2 Storage — File storage setup
- Environment Variables