fix handleUploadVideo

This commit is contained in:
SrGooglo 2023-05-26 15:18:18 +00:00
parent 7ad9cb8e5e
commit 5ac938279d

View File

@ -17,7 +17,9 @@ const maximuns = {
}
const handleUploadVideo = async (file, params) => {
file.filepath = await videoTranscode(file.filepath, global.uploadCachePath)
const transcoded = await videoTranscode(file.filepath, params.cacheUploadDir)
file.filepath = transcoded.filepath
file.newFilename = path.basename(file.filepath)
return file