Commit Graph

1 Commits

Author SHA1 Message Date
0e13401148 feat: Integrate photo upload with MinIO storage and Sharp optimization
Some checks failed
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
Now uses the existing infrastructure instead of base64:
- Created photos API client for multipart/form-data upload
- Upload to /api/v1/photos/upload endpoint
- Backend handles Sharp image optimization (resize, compress, format conversion)
- MinIO/S3-compatible storage for scalable file management
- 10MB file size limit (up from 5MB base64)
- Shows upload progress with spinner
- Returns optimized CDN-ready URLs
- Proper error handling with backend validation

Benefits over previous base64 approach:
 Images optimized with Sharp (smaller sizes, better quality)
 Stored in MinIO (scalable object storage)
 CDN-ready URLs for fast delivery
 No database bloat from base64 strings
 Supports larger files (10MB vs 5MB)
 Automatic thumbnail generation
 Better performance and scalability

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-04 08:23:15 +00:00