X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fupload.ts;h=f5f476913eb8006c4649c101458c4b69b0292db3;hb=4765348107ddd21cd2a0b86093859aa2e23ac0f1;hp=3cb17edd0aeaafeea1eb5dc369e787326fb2d92f;hpb=371d4c60639e405ce8a503bea1395e9102fbba84;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/upload.ts b/server/helpers/upload.ts index 3cb17edd0..f5f476913 100644 --- a/server/helpers/upload.ts +++ b/server/helpers/upload.ts @@ -1,10 +1,10 @@ import { join } from 'path' -import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants' +import { DIRECTORIES } from '@server/initializers/constants' function getResumableUploadPath (filename?: string) { - if (filename) return join(RESUMABLE_UPLOAD_DIRECTORY, filename) + if (filename) return join(DIRECTORIES.RESUMABLE_UPLOAD, filename) - return RESUMABLE_UPLOAD_DIRECTORY + return DIRECTORIES.RESUMABLE_UPLOAD } // ---------------------------------------------------------------------------