mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
* feat(plugin-fm): make rules configurable * fix(client): fix upload test cases * refactor(client): remove dulicated code * refactor(client): upload component * refactor(client): remove a lot of duplicated code * fix(client): fix upload in system settings * fix(client): fix test case * fix(client): fix test case * fix(client): fix test case * chore: update yarn.lock * fix(client): fix test case * fix: api mock * refactor(client): refactor hooks * docs(client): add demo code * fix: ci * fix(client): fix import package * fix: filesize * fix(client): fix upload component * fix(client): deprecate preview component and move to file-manager * fix(plugin-fm): fix storage changes in attachment field and locales * refactor(plugin-fm): add migration for attachment field storage * test(plugin-fm): add test case * feat(plugin-fm): add storage size component * fix(plugin-fm): fix component * refactor(plugin-fm): adjust constant * fix(plugin-fm): fix default local size limit * fix(plugin-fm): fix test cases * fix(plugin-fm): fix test case * fix(plugin-fm): fix rule hook --------- Co-authored-by: chenos <chenlinxh@gmail.com>
20 lines
686 B
TypeScript
20 lines
686 B
TypeScript
/**
|
|
* This file is part of the NocoBase (R) project.
|
|
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
* Authors: NocoBase Team.
|
|
*
|
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
*/
|
|
|
|
export const FILE_FIELD_NAME = 'file';
|
|
export const LIMIT_FILES = 1;
|
|
export const FILE_SIZE_LIMIT_MIN = 1;
|
|
export const FILE_SIZE_LIMIT_MAX = 1024 * 1024 * 1024;
|
|
export const FILE_SIZE_LIMIT_DEFAULT = 1024 * 1024 * 20;
|
|
|
|
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';
|