Hi, I am using Zoho Deluge to download a file from Box using Box API then upload to Sharepoint using Graph API.
The file uploads but gets corrupted. Works fine in Postman using Binary body option.
In word online I get:
And in desktop Word:
This is the script I've written. The Graph response looks normal:
// Upload file to Sharepoint
graph_header = Map();
graph_header.put("Authorization","Bearer " + graph_access_token);
graph_body = Map();
graph_upload_file = invokeurl
url :"https://graph.microsoft.com/v1.0/drives/b!cBfsvaQVPlqf5An1C82RbwVjjG22-Qo9S4bs-PPMe/items/root:/" + file_name + ":/content"
Any help would be appreciated. Thanks!