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:
fundon
2024-04-24 15:43:18 +00:00
parent 350fec5397
commit 0d8bab18df

View File

@@ -82,7 +82,9 @@ async function createSessionMessage({
if (blob instanceof File) {
return blob;
} else {
return new File([blob], await calculateBlobHash(blob));
return new File([blob], await calculateBlobHash(blob), {
type: blob.type,
});
}
})
);