Skip to content

Commit

Permalink
fix(h5): chooseFile 在 extension 参数为空时默认为 *
Browse files Browse the repository at this point in the history
  • Loading branch information
StrivingRabbit committed Jan 15, 2025
1 parent 43269f1 commit 9706a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/uni-api/src/protocols/media/chooseFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const ChooseFileOptions: ApiOptions<API_TYPE_CHOOSE_FILE> = {
if (extension instanceof Array && extension.length === 0) {
return 'param extension should not be empty.'
}
if (!extension) params.extension = ['']
if (!extension) params.extension = ['*']
},
},
}
Expand Down

0 comments on commit 9706a76

Please sign in to comment.