From 05058c04b6e89e155678a72dc32c27378194de79 Mon Sep 17 00:00:00 2001 From: Junyi Date: Tue, 11 Jul 2023 22:47:57 +0700 Subject: [PATCH] fix(plugin-fm): adjust upload file size to 1G which same as default on server side (#2236) Close #2215. --- .../plugins/file-manager/src/client/hooks/useUploadFiles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/file-manager/src/client/hooks/useUploadFiles.ts b/packages/plugins/file-manager/src/client/hooks/useUploadFiles.ts index 3c1e9583e..fbaf3c513 100644 --- a/packages/plugins/file-manager/src/client/hooks/useUploadFiles.ts +++ b/packages/plugins/file-manager/src/client/hooks/useUploadFiles.ts @@ -4,7 +4,7 @@ import { useContext } from 'react'; import { useFmTranslation } from '../locale'; // 限制上传文件大小为 10M -export const FILE_LIMIT_SIZE = 10 * 1024 * 1024; +export const FILE_LIMIT_SIZE = 1024 * 1024 * 1024; export const useUploadFiles = () => { const { service } = useBlockRequestContext();