]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/helpers/upload.ts
Try to fix github api rate limit
[github/Chocobozzz/PeerTube.git] / server / helpers / upload.ts
1 import { join } from 'path'
2 import { DIRECTORIES } from '@server/initializers/constants'
3
4 function getResumableUploadPath (filename?: string) {
5 if (filename) return join(DIRECTORIES.RESUMABLE_UPLOAD, filename)
6
7 return DIRECTORIES.RESUMABLE_UPLOAD
8 }
9
10 // ---------------------------------------------------------------------------
11
12 export {
13 getResumableUploadPath
14 }