-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#4691Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listp: file_selectorThe file_selector pluginThe file_selector pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Use case
I use file_selector's openFile() and openFiles() to pick up files. They work fine on Windows and Android. But on iOS, it shows a popup that no files can be selected:
Turns out you need to pass a public.item type identifier as acceptedTypeGroups:
[
const XTypeGroup(uniformTypeIdentifiers: ['public.item'])
]Proposal
It makes no sense to open a file selector that cannot pick up any files. The public.item type identifier on iOS should be default if acceptedTypeGroups is empty. This makes sure that the same function call results in the same behavior on different platforms.
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listp: file_selectorThe file_selector pluginThe file_selector pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
