From c7bb5ff119e90d074a5a72fcbfaf1ec90b10c55e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 27 Dec 2025 20:54:14 +0200 Subject: [PATCH] feat(attachments): display MIME type --- apps/client/src/translations/en/translation.json | 2 +- apps/client/src/widgets/type_widgets/Attachment.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index a50688874..3d4f50bd0 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -1618,7 +1618,7 @@ "will_be_deleted_in": "This attachment will be automatically deleted in {{time}}", "will_be_deleted_soon": "This attachment will be automatically deleted soon", "deletion_reason": ", because the attachment is not linked in the note's content. To prevent deletion, add the attachment link back into the content or convert the attachment into note.", - "role_and_size": "Role: {{role}}, Size: {{size}}", + "role_and_size": "Role: {{role}}, size: {{size}}, MIME: {{- mimeType}}", "link_copied": "Attachment link copied to clipboard.", "unrecognized_role": "Unrecognized attachment role '{{role}}'." }, diff --git a/apps/client/src/widgets/type_widgets/Attachment.tsx b/apps/client/src/widgets/type_widgets/Attachment.tsx index f270bcdae..95bc3c340 100644 --- a/apps/client/src/widgets/type_widgets/Attachment.tsx +++ b/apps/client/src/widgets/type_widgets/Attachment.tsx @@ -195,7 +195,11 @@ function AttachmentInfo({ attachment, isFullDetail }: { attachment: FAttachment, ) : (attachment.title)}
- {t("attachment_detail_2.role_and_size", { role: attachment.role, size: utils.formatSize(attachment.contentLength) })} + {t("attachment_detail_2.role_and_size", { + role: attachment.role, + size: utils.formatSize(attachment.contentLength), + mimeType: attachment.mime + })}