Here is my code :
FilePickerResult? result = await FilePicker.platform.pickFiles(
// TODO: check if this is really true
// This solution of filtering does not work, because the package is ignoring custom extensions like "scd".
type: FileType.custom,
allowedExtensions: ["scd"],
);
Here its to pick files with extension scd.
PS we have scd files in phone because we saved tehm using same APP.
I cant pick any files , it thrown an error:
Reloaded 1 of 1670 libraries in 1.288ms (compile: 26 ms, reload: 569 ms, reassemble: 469 ms).
W/FilePickerUtils(10325): Custom file type scd is unsupported and will be ignored.
D/FilePickerUtils(10325): Allowed file extensions mimes: []
I/flutter (10325): [MethodChannelFilePicker] Platform exception: PlatformException(FilePicker, Unsupported filter. Make sure that you are only using the extension without the dot, (ie., jpg instead of .jpg). This could also have happened because you are using an unsupported file extension. If the problem persists, you may want to consider using FileType.all instead., null, null)
I didnt try any other solution because I wanted to use file picker.
Any solution or a workaround ?
Greetings.
Rami Dhouib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.