Skip to content

Instantly share code, notes, and snippets.


Carlos Fructuoso analistacarlosh

View GitHub Profile
tanaikech /
Last active Aug 5, 2022
Uploading Files to OneDrive Using Node.js

Upload contents for an item on OneDrive

In order to use this script, please retrieve client id, client secret and refresh token before. About this, you can see the detail information at

1. Simple item upload

This is for the simple item upload is available for items with less than 4 MB of content. The detail information is

var fs = require('fs');
var mime = require('mime');
var request = require('request');