-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Simulator can't pick .zip files #1148
Comments
I have a similar problem with Android and csv files. They are greyed out although I selected them like final result = await FilePicker.platform.pickFiles(
type: FileType.custom,
allowMultiple: false,
allowedExtensions: ['csv'],
); |
This issue is stale because it has been open for 14 days with no activity. |
Have same issue: final file = await FilePicker.platform.pickFiles(allowMultiple: false, withData: true); |
This issue is stale because it has been open for 14 days with no activity. |
Also does grey out on android 10. No selection possible. |
filter |
This issue is stale because it has been open for 14 days with no activity. |
The issue is still actual |
This issue is stale because it has been open for 14 days with no activity. |
The issue is still actual |
This issue is stale because it has been open for 14 days with no activity. |
Still actual |
This issue is stale because it has been open for 14 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
this issue is not fixed, is it? |
It's not. Seems the maintainer has other priorities |
Hi, the issue comes from iOS file management. To get it working with non-natively handled file types, you must declare an uniform type identifier. Quick example : accepting OPML filesAdd these in your <key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>podcast.opml</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.xml</string>
</array>
<key>UTTypeDescription</key>
<string>OPML ( Outline Processor Markup Language) is an XML format for outlines.</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>opml</string>
</array>
</dict>
</dict>
</array>
|
The solution by @Chralu works. I think this should be added to the package's documentation. |
@anhtuan23 and @Chralu, thank you, I documented it here /~https://github.com/miguelpruivo/flutter_file_picker/wiki/Troubleshooting#-issue-9 |
Describe the bug
File picking doesn't appear to work on iOS 16 Simulator, although it appears to work in production for iOS 16. Simulator shows grayed out files. Android emulator can load .zip file.
We've tried with both
file_picker v5.2.0+1
andfile_picker v5.2.1
.Platform
Platform OS version
iOS 16
How are you picking?
Details to reproduce the issue
Try to pick .zip files from iOS 16 simulator. All .zip files are grayed out.
Error Log
No specific error gets logged.
Screenshots and/or video


Flutter Version details
Additional context
n/a
The text was updated successfully, but these errors were encountered: