mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 14:27:02 +08:00
fix(core): should set type of uploaded file (#6689)
<img width="609" alt="Screenshot 2024-04-24 at 20 43 45" src="https://github.com/toeverything/AFFiNE/assets/27926/8e3897d7-2aab-491c-abfe-8ac553ea99b3">
This commit is contained in:
@@ -82,7 +82,9 @@ async function createSessionMessage({
|
|||||||
if (blob instanceof File) {
|
if (blob instanceof File) {
|
||||||
return blob;
|
return blob;
|
||||||
} else {
|
} else {
|
||||||
return new File([blob], await calculateBlobHash(blob));
|
return new File([blob], await calculateBlobHash(blob), {
|
||||||
|
type: blob.type,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user