]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/helpers/upload.ts
Merge branch 'release/4.2.0' into develop
[github/Chocobozzz/PeerTube.git] / server / helpers / upload.ts
1 import { join } from 'path'
2 import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants'
3
4 function getResumableUploadPath (filename?: string) {
5 if (filename) return join(RESUMABLE_UPLOAD_DIRECTORY, filename)
6
7 return RESUMABLE_UPLOAD_DIRECTORY
8 }
9
10 // ---------------------------------------------------------------------------
11
12 export {
13 getResumableUploadPath
14 }