Files
cal.diy/apps/web
6acc84661d refactor: fix 413 Request Entity too large error when big image files are uploaded (#27285)
* feat: add image resizing endpoint for organization onboarding

Co-Authored-By: [email protected] <[email protected]>

* chore: add translation keys for image upload errors

Co-Authored-By: [email protected] <[email protected]>

* refactor: rename endpoint to resizeBase64Image with imageType enum and Zod validation

Co-Authored-By: [email protected] <[email protected]>

* refactor: use ImageUploader and BannerUploader components for organization brand onboarding

Replace server-side image resizing endpoint with client-side cropping using existing ImageUploader and BannerUploader components. This approach:
- Avoids sending large base64 payloads to the server (preventing 413 errors)
- Provides better UX with cropping functionality
- Aligns with team onboarding which already uses ImageUploader
- Removes unnecessary server-side code

Co-Authored-By: [email protected] <[email protected]>

* Revert formatting change

* fix: correct max file size from 10mb to 5mb in translations

Co-Authored-By: [email protected] <[email protected]>

* Add Remove bvutton too

* fix: correct banner dimension, indentation, and import order

Co-Authored-By: [email protected] <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-01-29 08:55:13 +00:00
..
…
2026-01-02 12:47:00 +00:00
2026-01-23 11:18:43 -03:00
2025-05-09 19:44:48 +00:00
2026-01-28 16:20:47 +00:00