The OneDrive file picker makes it easy for your web app to connect to content stored in OneDrive and SharePoint. Using the file picker you can open, save, and share files stored in OneDrive or SharePoint without writing custom file UI code.
You can use the file picker SDK to integrate with OneDrive and SharePoint in the following ways:
- Open a file and receive a short-lived URL to download the content of the file.
- Create a long-lived sharable link to view or edit a file. These are designed to be sent or shared with co-workers, friends and family, or other individuals.
- Get a direct link to the file which requires end user authorization.
- Get a file or folder ID for a file that can be used with Microsoft Graph to perform actions on the file.
- Save a file to OneDrive or SharePoint team site.
To get started you need to register your application and receive an app ID from the Microsoft Application Registration Portal.
- Log in to the Microsoft Application Registration Portal using your Microsoft account, or a work or school account.
- Click Add an app and enter a name for your app.
- Click Generate New Password to create an Application secret. While this value is not necessary for the picker, it must have been created.
- Click Add Platform and then select Web.
- Enter one or more URLs where the picker will be hosted on your website. Each page that hosts the picker needs to have a redirect URL provided.
- Click the Save button to save your changes.
The OneDrive picker and saver supports the following web browsers:
- Internet Explorer Desktop & Mobile 11+
- Microsoft Edge v25+
- Chrome Desktop 5+
- Chrome for Android
- Android Browser 4.1+
- Firefox Desktop & Mobile 8+
- Safari Desktop & Mobile 5+
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.