1
0
Fork 0
peertube/server/helpers/upload.ts
2022-06-03 16:28:20 +02:00

14 lines
376 B
TypeScript

import { join } from 'path'
import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants'
function getResumableUploadPath (filename?: string) {
if (filename) return join(RESUMABLE_UPLOAD_DIRECTORY, filename)
return RESUMABLE_UPLOAD_DIRECTORY
}
// ---------------------------------------------------------------------------
export {
getResumableUploadPath
}