tachybase_todo/packages/plugin-file-manager/src/constants.ts
Junyi eb7d5c594e
feat: make single file upload to attachment available (#46)
* feat: make single file upload to attachment available

* fix: change file name case

* feat: refactor structure and make local server work

* test: skip bug case temporarily

* fix: use middleware to load storage static server

* fix: change meta from values to request.body back and refactor local server middleware

* adjust details

* http:

Co-authored-by: chenos <chenlinxh@gmail.com>
2020-12-23 12:46:13 +08:00

7 lines
215 B
TypeScript

export const FILE_FIELD_NAME = 'file';
export const LIMIT_FILES = 1;
export const LIMIT_MAX_FILE_SIZE = 1024 * 1024 * 1024;
export const STORAGE_TYPE_LOCAL = 'local';
export const STORAGE_TYPE_ALI_OSS = 'ali-oss';