aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/upload.ts
blob: f5f476913eb8006c4649c101458c4b69b0292db3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { join } from 'path'
import { DIRECTORIES } from '@server/initializers/constants'

function getResumableUploadPath (filename?: string) {
  if (filename) return join(DIRECTORIES.RESUMABLE_UPLOAD, filename)

  return DIRECTORIES.RESUMABLE_UPLOAD
}

// ---------------------------------------------------------------------------

export {
  getResumableUploadPath
}