Init commit
This commit is contained in:
14
server/core/helpers/upload.ts
Normal file
14
server/core/helpers/upload.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user