Use REST API to upload a file to office365 OneDrive

Hi All,

I failed to use RESTClient upload a file from local pc to my office365 OneDrive follow the Microsoft article.

the following is Microsoft link

http://msdn.microsoft.com/en-us/library/office/dn605900%28v=office.15%29.aspx

Create file with content

Creates a new file and provisions the file with content. Provide the content as a bit stream in the POST body. The body is required.

Request

POST ../_api/files/Add(string name, boolean overwrite)

Body

Bit stream of file content.

Response

Returns file properties and response code.

if someone have some code in native c or c++, please help.

Many Thanks

Will

September 14th, 2014 11:27pm

Have you looked at snippet here:
https://msdn.microsoft.com/en-us/library/office/dn659726.aspx
Free Windows Admin Tool Kit Click here and download it now
May 24th, 2015 10:44pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics