feat: udpate upload content type
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user