mdx0111
mdx0111

Reputation: 411

How to set OneDrive file picker (web apps) file types?

I'm trying to integrate OneDrive file picker to a web application. I have managed to initialize the file picker and show the file dialog; however, I could not find anything in the available documentations and on the internet to show how to limit the dialog to show certain file types.

I wonder if anybody knows how to set the mime type or file type to be only documents and pdf files.

Thanks.

Upvotes: 0

Views: 511

Answers (2)

mdx0111
mdx0111

Reputation: 411

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

Upvotes: 1

Joel
Joel

Reputation: 104

There's no supported way to limit the file picker to just show certain file types.

Upvotes: 0

Related Questions