coolify/resources/views/livewire/project/service
Andras Bacsai eaaf258f25 fix(service): block UI editing of file volumes exceeding 5 MiB
Large host files mounted via Docker volumes caused the storages page to
become unusable — full file content was stored in the encrypted mediumText
column and serialised into the Livewire payload, crashing the browser.

- Add MAX_CONTENT_SIZE (5 MiB), BINARY_PLACEHOLDER, and TOO_LARGE_PLACEHOLDER
  constants to LocalFileVolume
- Check remote file size via stat/wc before cat in loadStorageOnServer and
  saveStorageOnServer; store placeholder instead of content when limit exceeded
- Expose is_too_large computed attribute (appended for Livewire serialisation)
- Guard submit, instantSave, and syncData in FileStorage Livewire component
- Truncate oversized content in Storage::refreshStorages to prevent payload bloat
- Show distinct warning banner in file-storage blade; mark textarea readonly and
  hide Save/Convert buttons for too-large files
- Add unit tests covering constants, computed flags, and toArray serialisation

Fixes #4701
2026-04-28 22:36:56 +02:00
..
configuration.blade.php fix(ui): keep sidebar visible on scheduled task single view 2026-03-29 15:27:40 +05:30
database-backups.blade.php feat: Refactor service database management and backup functionalities 2026-01-02 16:29:48 +01:00
edit-compose.blade.php feat: add dynamic viewport-based height for compose editor 2025-10-27 11:18:25 +01:00
edit-domain.blade.php Merge remote-tracking branch 'origin/next' into domain-info-addition 2026-04-14 11:17:40 +02:00
file-storage.blade.php fix(service): block UI editing of file volumes exceeding 5 MiB 2026-04-28 22:36:56 +02:00
heading.blade.php fix(ui): improve responsive project headings and controls 2026-04-09 19:51:31 +02:00
index.blade.php Merge remote-tracking branch 'origin/next' into domain-info-addition 2026-04-14 11:17:40 +02:00
stack-form.blade.php Merge remote-tracking branch 'origin/next' into jean/organize-service-ui 2026-04-14 10:52:01 +02:00
storage.blade.php fix: Improve read-only volume detection and UI messaging 2025-12-11 21:25:33 +01:00