Skip to content

This is a simple (large) file upload script against the Microsoft Graph API

License

Notifications You must be signed in to change notification settings

MaxxtonGroup/oneDriveUploader

Repository files navigation

This is a simple (large) file upload Python 3 script against the Microsoft Graph API. It uses the special api for large files where it's uploading the file in chunks. This is tested against the OneDrive api which is identical to the SharePoint API.

Installation

Prerequisite: make sure you use Python 3 Install the required packages:

pip install -r requirements.txt

Usage

python3 example.py

Tip: use the Graph Explorer to get above info and play around with the API.

Possible improvements

  • Check for existing files and / or support overriding
  • Better error handling and resuming uploads

Disclaimer

This script is a gathering of all kind of examples found on the internet. Since none of them was simple to use, we combined this into one simple script and put it online under the MIT license. In case you want to be mentioned, get in touch.

About

This is a simple (large) file upload script against the Microsoft Graph API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages