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.32k stars 653 forks source link

Exclude extensions/files #272

Open Ahmadre opened 4 years ago

Ahmadre commented 4 years ago

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

miguelpruivo commented 4 years ago

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.

lvyandev commented 4 months ago

any update on this?

Ahmadre commented 3 weeks ago

@miguelpruivo