Update upload.js

This commit is contained in:
yanmao 2021-12-18 18:58:23 +08:00
parent 0789e4ce76
commit 58189d4035
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,6 @@ class UploadController extends Controller {
osDir === 'win' ? '.exe' : ''
}`,
);
if (osDir !== 'win') fs.chmod('777', probePath);
ffmpeg.setFfprobePath(probePath);
ffmpeg.ffprobe(filePath, (err, metadata) => {
const fileName = new Date().getTime() + '-v-image.png'; // stream对象也包含了文件名大小等基本信息
@ -219,6 +218,7 @@ class UploadController extends Controller {
});
} catch (err) {
console.error(err);
result.message = err.message;
resolve(result);
}
});