chore: default type to text/plain (#4993)

Signed-off-by: Sara Vieira <hey@iamsaravieira.com>
Co-authored-by: boojack <stevenlgtm@gmail.com>
pull/5001/head
Sara Vieira 2 months ago committed by GitHub
parent ba7dfb7d98
commit 51d643c780
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -52,7 +52,7 @@ const UploadAttachmentButton = observer((props: Props) => {
attachment: Attachment.fromPartial({
filename,
size,
type: type || mime.getType(filename) || "",
type: type || mime.getType(filename) || "text/plain",
content: buffer,
}),
attachmentId: "",

Loading…
Cancel
Save