Golang: http.newRequest for createuploadsession to upload large file to onedrive

New Contributor

Hi All, 


I am trying to create upload session to upload large files chunk by chunk using this article
Language : golang

Request type : Post

URL :/users/{userId}/drive/items/{itemId}/createUploadSession

body : {
"@microsoft.graph.conflictBehavior": conflictOption,
"description": "",
"name": filePath,
"item": map[string]string{"@microsoft.graph.conflictBehavior": conflictOption},
"deferCommit": true}

Its always returning the session which is replace/Overwriting the exesting file. 

Could any one please help in this. 

0 Replies