nocobase/packages/plugins/file-manager/src/server/constants.ts
Dunqing 8905e3c211 feat(file-manager): support tencent cos (#958)
* feat: support tencent cos

* feat: normalize

* chore: update env example

* test: add cos

* Revert "feat: normalize"

This reverts commit 371880013c.

* feat: normalize

* feat: tengxun to tencent

* chore: fix missing deps

* fix: locale

* fix: locale cos
2022-10-27 14:09:29 +08:00

9 lines
297 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';
export const STORAGE_TYPE_S3 = 's3';
export const STORAGE_TYPE_TX_COS = 'tx-cos';