X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fupload.ts;h=3cb17edd0aeaafeea1eb5dc369e787326fb2d92f;hb=aca96f8007a5be97b7cfa36e3fee0b7003b1bcf5;hp=030a6b7d547e48ea99e44fd3eaf9eea6cd4dc6d4;hpb=f6d6e7f861189a4446f406efb775a29688764b48;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/upload.ts b/server/helpers/upload.ts index 030a6b7d5..3cb17edd0 100644 --- a/server/helpers/upload.ts +++ b/server/helpers/upload.ts @@ -1,5 +1,3 @@ -import { METAFILE_EXTNAME } from '@uploadx/core' -import { remove } from 'fs-extra' import { join } from 'path' import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants' @@ -9,13 +7,8 @@ function getResumableUploadPath (filename?: string) { return RESUMABLE_UPLOAD_DIRECTORY } -function deleteResumableUploadMetaFile (filepath: string) { - return remove(filepath + METAFILE_EXTNAME) -} - // --------------------------------------------------------------------------- export { - getResumableUploadPath, - deleteResumableUploadMetaFile + getResumableUploadPath }