From 9706a7626cbeb50fc01345eb552febd1f97d1e6b Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Wed, 15 Jan 2025 15:39:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(h5):=20chooseFile=20=E5=9C=A8=20extension?= =?UTF-8?q?=20=E5=8F=82=E6=95=B0=E4=B8=BA=E7=A9=BA=E6=97=B6=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=B8=BA=20*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-api/src/protocols/media/chooseFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uni-api/src/protocols/media/chooseFile.ts b/packages/uni-api/src/protocols/media/chooseFile.ts index ed62217be9e..248b1834c63 100644 --- a/packages/uni-api/src/protocols/media/chooseFile.ts +++ b/packages/uni-api/src/protocols/media/chooseFile.ts @@ -29,7 +29,7 @@ export const ChooseFileOptions: ApiOptions = { if (extension instanceof Array && extension.length === 0) { return 'param extension should not be empty.' } - if (!extension) params.extension = [''] + if (!extension) params.extension = ['*'] }, }, }