miguelpruivo / flutter_file_picker

File picker plugin for Flutter, compatible with mobile (iOS & Android), Web, Desktop (Mac, Linux, Windows) platforms with Flutter Go support.
MIT License
1.35k stars 672 forks source link

Add assert to the type parameter #1619

Closed KeithBacalso closed 1 week ago

KeithBacalso commented 1 month ago

Ok so while I was testing a type: FileType.audio parameter with allowedExtensions in desktop, it did not gave error in the logs. When I know that it must be type: FileType.custom when using the allowedExtensions that is when I know the file picker now works(opens the file manager of desktop).

I suggest maybe adding an assert to the type parameter when using alongside allowedExtensions? so we will know that FileType.custom should be used here?

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open for 7 days with no activity.

github-actions[bot] commented 1 week ago

This issue was closed because it has been inactive for 14 days since being marked as stale.