jack 3 周之前
父节点
当前提交
0e1456b6f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/hooks/useImport.ts

+ 1 - 1
src/hooks/useImport.ts

@@ -1576,7 +1576,7 @@ export default () => {
               if (localData) {
               if (localData) {
                 const uploadTask = (async () => {
                 const uploadTask = (async () => {
                   try {
                   try {
-                    const file = await convertVideoToMP4(localData, `video_${Date.now()}.mp4`)
+                    const file = await dataToFile(localData, `video_${Date.now()}.mp4`, 'video/mp4')
                     if (file) {
                     if (file) {
                       const url = await uploadFileToS3(file)
                       const url = await uploadFileToS3(file)
                       element.src = url
                       element.src = url