Closed stephanie-finch closed 1 year ago
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.
FilePickerResult? result =
await FilePicker.platform.pickFiles(
type: FileType.custom,
allowedExtensions: [
'csv'
], );
Also does grey out on android 10. No selection possible.
FilePickerResult? result = await FilePicker.platform.pickFiles(
type: FileType.custom,
allowMultiple: true,
allowedExtensions: ['gcode'],
);
filter gcode
files, also does grey out on iOS 15. No selection possible.
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.
Add these in your Info.plist
file :
<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>
opml
doesn't work).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