Files
webmail/components
Roman Varlakov 656a9c9c3b feat(plugins): let onBeforeBlobUpload offload an attachment
A handler can now return an ExternalAttachmentResult ({externalAttachment:
true, html, text}) instead of a file id. The composer then deletes the
staged file, removes the attachment and appends the replacement content
to the body, so a plugin can push a large file to an external store and
leave a download link behind. Returning a string (or nothing) keeps the
stock upload path byte-for-byte.

Also adds plainTextMode to the upload callback deps, which the new branch
reads to pick between the html and text replacement.
2026-08-06 17:25:27 +06:00
..
2026-06-24 18:39:38 +02:00