From 790c2837ddcb443c0f1ea6adcdcb101dfe159d01 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 9 Sep 2021 09:31:50 +0200 Subject: Fix silent 500 after resumable upload --- server/controllers/api/videos/upload.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'server/controllers/api/videos') diff --git a/server/controllers/api/videos/upload.ts b/server/controllers/api/videos/upload.ts index 7e87df8b1..55cb9cf20 100644 --- a/server/controllers/api/videos/upload.ts +++ b/server/controllers/api/videos/upload.ts @@ -2,7 +2,7 @@ import express from 'express' import { move } from 'fs-extra' import { basename } from 'path' import { getLowercaseExtension } from '@server/helpers/core-utils' -import { deleteResumableUploadMetaFile, getResumableUploadPath } from '@server/helpers/upload' +import { getResumableUploadPath } from '@server/helpers/upload' import { uuidToShort } from '@server/helpers/uuid' import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent' import { getLocalVideoActivityPubUrl } from '@server/lib/activitypub/url' @@ -130,9 +130,6 @@ export async function addVideoResumable (_req: express.Request, res: express.Res const videoInfo = videoPhysicalFile.metadata const files = { previewfile: videoInfo.previewfile } - // Don't need the meta file anymore - await deleteResumableUploadMetaFile(videoPhysicalFile.path) - return addVideo({ res, videoPhysicalFile, videoInfo, files }) } -- cgit v1.2.3