mirror of https://github.com/usememos/memos.git
chore: default type to text/plain (#4993)
Signed-off-by: Sara Vieira <hey@iamsaravieira.com> Co-authored-by: boojack <stevenlgtm@gmail.com>
This commit is contained in:
parent
ba7dfb7d98
commit
51d643c780
|
|
@ -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…
Reference in New Issue