]>
Commit | Line | Data |
---|---|---|
1 | import { join } from 'path' | |
2 | import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants' | |
3 | ||
4 | function getResumableUploadPath (filename?: string) { | |
5 | if (filename) return join(RESUMABLE_UPLOAD_DIRECTORY, filename) | |
6 | ||
7 | return RESUMABLE_UPLOAD_DIRECTORY | |
8 | } | |
9 | ||
10 | // --------------------------------------------------------------------------- | |
11 | ||
12 | export { | |
13 | getResumableUploadPath | |
14 | } |