Wire the existing media-preview actions and modal, with a regression test for the missing connections. Verified image, audio and video previews against a local backend.
Refs vastsa/FileCodeBox#472
Escape untrusted text on renderer failures and add regression coverage. Keep brace-expansion overrides compatible with minimatch major versions and clear existing lint errors.
Refs vastsa/FileCodeBox#557
* fix: sandbox the media preview iframe fallback (security item 2)
The catch-all preview branch renders arbitrary file types in a
same-origin iframe. Add sandbox (no allow-scripts) so scripts inside
previewed documents never run, and no-referrer to avoid leaking the
retrieve URL to cross-origin file hosts. PDF preview is unaffected.
* feat: login-guide card on send page when guest upload is disabled
Guest upload off + no admin token now renders a login-guide card in
place of the upload form (entered page state, not a late alert); the
card links to /login?redirect=/send so users return to sending after
sign-in. Backend 403 fallback and select-time checks remain as the
second layer.
Drop the allowedFileTypes camel twin from SystemConfig/ConfigState/
config-storage defaults and mapping; send-flow file-type validation
reads allowed_file_types only; DEFAULT_CONFIG drops dead keys.
Drop camel+snake dual reads (files, dashboard, policy, storage, counts),
the dead response.msg read, clearExpiredAt/downloadLimit/sortBy/maxChars
request keys, and the never-read expires_at twin. Internal view-model
state keeps its own names; only API boundary types changed.
- Added functionality to update allowed file types via a new input field.
- Updated various UI elements for better accessibility and consistency in dark mode.
- Improved styling for input fields, labels, and buttons to align with the new design system.
- Refactored class bindings to use 'zinc' color palette for better contrast and readability.