aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/helpers/upload.ts
blob: 3cb17edd0aeaafeea1eb5dc369e787326fb2d92f (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                      


                                                                              
                        
 
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
}