You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
373 B
TypeScript

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