OneDrive API Node.js - Can´t use :/createUploadSession Content-Range Error
问题 My problem was that I couldn´t upload files bigger than 4MB so I used the createuploadsession according to createuploadsession I successfully get the uploadUrl value from the createuploadsession response. Now I try to make a PUT request with this code var file = 'C:\\files\\box.zip' fs.readFile(file, function read(e, f) { request.put({ url: 'https://api.onedrive.com/rup/545d583xxxxxxxxxxxxxxxxxxxxxxxxx', headers: { 'Content-Type': mime.lookup(file), 'Content-Length': f.length, 'Content-Range'