coomar2841 / android-multipicker-library

Android Multipicker Library
Apache License 2.0
439 stars 107 forks source link

restrict mimetype for filepicker #96

Closed urvish91 closed 7 years ago

urvish91 commented 7 years ago

Hi, how can we restrict specified multiple mimetype for file picker ? for ex. i want to allow only pdf, doc and txt file.

coomar2841 commented 7 years ago
filePicker.setMimeType("application/pdf");

This should work.

urvish91 commented 7 years ago

Yes but I want to set multiple like doc and PDF only then how to do?

On Apr 27, 2017 2:44 PM, "Kumar Bibek" notifications@github.com wrote:

filePicker.setMimeType("application/pdf");

This should work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/coomar2841/android-multipicker-library/issues/96#issuecomment-297659531, or mute the thread https://github.com/notifications/unsubscribe-auth/ACsMRVKIX-A-55K4hOoI9vxXOjiER84Yks5r0FyAgaJpZM4MvTS2 .

coomar2841 commented 7 years ago

Sorry, there is no solution yet for this. Actually, it depends on the target applications. There is no recommended specification for handling multiple mime types.