editor: allow attaching image as file (#8752)

* editor: allow attaching image as file
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

* web: fix image previews for regular attachments

* mobile: allow images to be added as attachment without preview

* web: minor refactor
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

---------

Co-authored-by: Ammar Ahmed <ammarahmed6506@gmail.com>
This commit is contained in:
01zulfi
2026-02-02 10:26:03 +05:00
committed by GitHub
parent 75103dc706
commit 994060cce2
4 changed files with 19 additions and 30 deletions

View File

@@ -102,7 +102,7 @@ export function RemoveAttachment(props: ToolProps) {
}
const previewableFileExtensions = ["pdf"];
const previewableMimeTypes = ["application/pdf"];
const previewableMimeTypes = ["application/pdf", "image/"];
function canPreviewAttachment(attachment: Attachment) {
if (!attachment) return false;