Skip to content

Commit b73aa6c

Browse files
author
Valentin Mourot
committed
fix(upload): android maxFiles cannot be < 1
1 parent 0a174aa commit b73aa6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/framework/util/fileHandler/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ export class LocalFile implements LocalFile.CustomUploadFileItem {
127127
try {
128128
await assertPermissions('galery.read');
129129
const pics = await ImagePicker.openPicker({
130-
maxFiles: 0,
131-
multiple, // Default value is 5 somewhere in the third-party package, so we must set it to 0 here to allow unlimited selection.
130+
maxFiles: 999, // Default value is 5 somewhere in the third-party package, so we must set it to some high value here to allow """unlimited""" selection.
131+
multiple,
132132
});
133133

134134
pickedFiles = await processImages(pics);

0 commit comments

Comments
 (0)