Flutter_file_picker: Exclude extensions/files

Created on 10 May 2020  ·  1Comment  ·  Source: miguelpruivo/flutter_file_picker

At first: thank you soo much for this awesome package 📦❤️.

Now it is possible to set allowedExtension, but I had a use case, where i wanted to create a chat-app where users can select "documents". It's exactly the same like WhatsApp, but I want to forbid file extensions like: ".exe", ".bat", ".sh", etc. for security reasons.

Is it possible to get a parameter in ".getFile" and the others for "excludedFileExtensions"?

Thanks 🙏

Rebar

feature-candidate suggestion

Most helpful comment

That's a good one, never thought of that @Ahmadre. I'll take it as a suggestion, but I have to investigate whether is is support by both platforms or not — features that are supported for one platform only, I tend to avoid to prevent misuse of developers

But I can definitely see value on this one. I'll keep you updated.

>All comments

That's a good one, never thought of that @Ahmadre. I'll take it as a suggestion, but I have to investigate whether is is support by both platforms or not — features that are supported for one platform only, I tend to avoid to prevent misuse of developers

But I can definitely see value on this one. I'll keep you updated.

Was this page helpful?
0 / 5 - 0 ratings