mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
fix handleUploadVideo
This commit is contained in:
parent
7ad9cb8e5e
commit
5ac938279d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user