From cb2cb0b5ed296bea045540b04045b8589a233029 Mon Sep 17 00:00:00 2001 From: Junyi Date: Wed, 5 Mar 2025 17:54:27 +0800 Subject: [PATCH] fix(plugin-file-manager): fix error thrown when creating file collection (#6363) --- .../schema-component/antd/upload/__tests__/upload.test.tsx | 6 ++---- .../plugin-file-manager/src/client/templates/file.ts | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/upload/__tests__/upload.test.tsx b/packages/core/client/src/schema-component/antd/upload/__tests__/upload.test.tsx index d055999888..7f8c3fca9f 100644 --- a/packages/core/client/src/schema-component/antd/upload/__tests__/upload.test.tsx +++ b/packages/core/client/src/schema-component/antd/upload/__tests__/upload.test.tsx @@ -24,8 +24,7 @@ describe('Upload', () => { render(); }); - // TODO: skip due to not pass but works in browser - it.skip('upload single', async () => { + it('upload single', async () => { await renderAppOptions({ designable: true, enableUserListDataBlock: true, @@ -124,8 +123,7 @@ describe('Upload', () => { }); }); - // TODO: skip due to not pass but works in browser - it.skip('upload multi', async () => { + it('upload multi', async () => { await renderAppOptions({ designable: true, enableUserListDataBlock: true, diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts index c98e2fb68f..b618528875 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts @@ -104,7 +104,6 @@ export class FileCollectionTemplate extends CollectionTemplate { type: 'text', name: 'url', deletable: false, - length: 1024, uiSchema: { type: 'string', title: `{{t("URL")}}`,