feat: udpate upload content type

This commit is contained in:
yanghao05
2025-04-18 14:45:06 +08:00
parent 2854afec53
commit ac65302601
18 changed files with 228 additions and 23 deletions

View File

@@ -99,8 +99,10 @@ const processNextUpload = async () => {
const md5Hash = await calculateMD5(nextFile.file);
// get file ext
const fileExt = nextFile.file.name.split('.').pop();
console.log(nextFile.file)
// Check if file exists before upload
const checkResult = await mediaService.preUploadedCheck(md5Hash, fileExt);
const checkResult = await mediaService.preUploadedCheck(md5Hash, fileExt, nextFile.file.type);
if (checkResult.data.exists) {
// Skip upload and mark as completed