Error response while trying to upload files to Box from ServiceNow REST API While sending multipart-form data POST request to BOX from ServiceNow, I am getting this error from the Box API:
{“code”:“bad_request”,“help_url”:“http://developers.box.com/docs/#errors",“status”:400,“message”:"API upload did not contain a file part”,“type”:“error”}
The payload which is being sent over on this request, looks something like this:
–xXxxxxxxxxxxxxxxxxXx"
,Content-Disposition:form-data; name=“attributes”,{“name”:“config.txt”,“parent”:{“id”:“0”}},–xXxxxxxxxxxxxxxxxxXx,Content-Type:text/plain,Content-Disposition:form-data; name=“file”; filename=“config.txt”
,[B@7e8de4,–xXxxxxxxxxxxxxxxxxXx–
Any idea of what I am doing wrong here?