Junyi cc0e13dce0
fix(plugin-file-manager): fix file issues (#6436)
* fix(plugin-file-manager): fix file issues

* fix(plugin-file-manager): fix special char in windows
2025-03-12 23:35:14 +08:00

20 lines
692 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 = Number.POSITIVE_INFINITY;
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';