]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/helpers/upload.ts
Fix silent 500 after resumable upload
[github/Chocobozzz/PeerTube.git] / server / helpers / upload.ts
CommitLineData
f6d6e7f8 1import { join } from 'path'
2import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants'
3
4function getResumableUploadPath (filename?: string) {
5 if (filename) return join(RESUMABLE_UPLOAD_DIRECTORY, filename)
6
7 return RESUMABLE_UPLOAD_DIRECTORY
8}
9
f6d6e7f8 10// ---------------------------------------------------------------------------
11
12export {
790c2837 13 getResumableUploadPath
f6d6e7f8 14}