]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - upload.ts
3cb17edd0aeaafeea1eb5dc369e787326fb2d92f
[github/Chocobozzz/PeerTube.git] / 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 }