Ability to set MIME/file type(s) (e.g. Documents, Videos, ...) on OneDrive file picker for web apps
It would be great if this was possible to specify MIME/file types on web apps file picker. Almost every other file picker on the market allow for this.
For example, Dropbox allows to set a list of file extensions to only allow the user to select files with the specified extensions through the following API option:
options = {
// Optional. This is a list of file extensions. If specified, the user will
// only be able to select files with these extensions. You may also specify
// file types, such as "video" or "images" in the list. For more information,
// see File types below. By default, all extensions are allowed.
extensions: ['.pdf', '.doc', '.docx']
}
Dropbox.choose(options);
Or as an another example, Google allows for the same feature through the following API:
var docsView = new google.picker.DocsView(google.picker.ViewId.DOCS);
docsView.setIncludeFolders(true);
docsView.setMimeTypes("application/rtf,application/vnd.oasis.opendocument.text,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document");
Thanks a lot. :)

This is now available! You can specify a list of file extensions that your app wants to allow the user to pick from, or use categories (like photos, folders) to specify a system-defined set of items that can be selected. More information is available here: https://dev.onedrive.com/sdk/js-v7/js-picker-open.htm#advanced-open-scenarios
6 comments
-
Maganti Sankar commented
Can i access to upload and download files from particular folder using javascript SDK
-
Alok Pandey commented
Any update on this? Is this functionality allowed now in OneDrive? Thanks.
-
Anonymous commented
Senaida1
-
Masoud commented
More than a year passed and there is no update on this!
-
Anonymous commented
you should rather add a ******* sign out button before dear...
-
Masoud commented
The only stopping factor for us to integrate to OneDrive was lack of this feature.