mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
* fix(plugin-file-manager): fix file issues * fix(plugin-file-manager): fix special char in windows
20 lines
692 B
TypeScript
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';
|