Embed images and files in descriptions and notes #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/inline-media"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Images and files can now be inserted straight into a contract description or a
note.
What it does
touch devices.
built-in viewer. Other files show as a card and download on click.
How it works
attachments panel). The HTML only stores a reference (
data-attachment-id/data-file-id), never asrc; content is fetched with the bearer token andshown from a blob URL. No database changes (ADR-025).
?reuseExisting=truereturns the existing attachment when thesame file is already on the contract instead of a 409.
leave orphaned files.
frame-src 'self' blob:andworker-src 'self' blob:for thePDF viewer and pdf.js worker.
Testing
duplicate, plain-text labels for embedded media).
read-only rendering, image and PDF preview, malicious HTML is stripped.
Deployment
No migrations. Update the stack as usual.