File Upload via direct HTTP REST multipart/form-data POST
Hi All,
Trying to do a file upload directly using outbound REST from ServiceNow.
As outlined here:
https://developer.box.com/reference#upload-a-file
I am setting the Authorization and Content-Type values in the HTTP Header.
For the HTTP Query parameters I am setting name and parent.id as myfilename.png and 0 respectively.
I am setting the body of the HTTP request as my binary file data.
No matter what combination of options I try, I seem to either get a 405 (invalid method) or 500 (internal error) for my response.
cURL from my terminal work fine.
I did find this and it seems a few others have similar issues:
https://community.servicenow.com/thread/223531
Any help greatly appreciated!
Please sign in to leave a comment.
Comments
1 comment