Document upload to package using REST API failing
Monday, August 7, 2017 at 04:31pmI have done multiple trials and not able to end up with successful results for uploading a document to a Transaction. I am using REST API and here is the RAW request
----Request----
POST https://sandbox.esignlive.com/api/packages/ggj1mkdQEWLsmP1tsWSj7T9sbjQ=/documents HTTP/1.1
Host: sandbox.esignlive.com
Connection: keep-alive
Content-Length: 186008
Accept: text/html
Cache-Control: no-cache
Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop
Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Postman-Token: c2b02825-5b51-ec7d-a7d2-4c42d489d6d3
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary3r8scFGChPRPOO4u
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8
------WebKitFormBoundary3r8scFGChPRPOO4u
Content-Disposition: form-data; name="file"; filename="cleaning_contract.pdf"
Content-Type: application/pdf
%PDF-1.6
%
179 0 obj
185295
%%EOF
------WebKitFormBoundary3r8scFGChPRPOO4u--
---Response---
HTTP/1.1 302 Found
Server: nginx
Date: Tue, 08 Aug 2017 01:18:10 GMT
Content-Length: 0
Connection: keep-alive
X-Powered-By: Undertow
Location: https://sandbox.esignlive.com/error?error=eyJtZXNzYWdlS2V5IjoiZXJyb3IuaW50ZXJuYWwuZGVmYXVsdCIsIm1lc3NhZ2UiOiJVbmV4cGVjdGVkIGVycm9yLiBXZSBhcG9sb2dpemUgZm9yIGFueSBpbmNvbnZlbmllbmNlIHRoaXMgbWF5IGhhdmUgY2F1c2VkIHlvdSwgcGxlYXNlIHRyeSBhZ2Fpbi4gSWYgdGhlIHByb2JsZW0gcGVyc2lzdHMsIHBsZWFzZSBjb250YWN0IG91ciBzdXBwb3J0IHRlYW0uIiwiY29kZSI6NTAwLCJuYW1lIjoiVW5oYW5kbGVkIFNlcnZlciBFcnJvciJ9
P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
Strict-Transport-Security: max-age=31536000; includeSubdomains;
I was following the Postman example, I tried with and without JSON payload about fields, but still document is not getting uploaded to Transaction.
Can we get any possible guidance on this issue ?
Reply to: Document upload to package using REST API failing
Monday, August 7, 2017 at 06:09pmReply to: Document upload to package using REST API failing
Monday, August 7, 2017 at 06:15pmReply to: Document upload to package using REST API failing
Tuesday, August 8, 2017 at 05:30amReply to: Document upload to package using REST API failing
Tuesday, August 8, 2017 at 05:57amReply to: Document upload to package using REST API failing
Tuesday, August 8, 2017 at 06:23amReply to: Document upload to package using REST API failing
Tuesday, August 8, 2017 at 06:40amReply to: Document upload to package using REST API failing
Tuesday, August 8, 2017 at 07:04amReply to: Document upload to package using REST API failing
Tuesday, August 8, 2017 at 07:14amReply to: Document upload to package using REST API failing
Tuesday, August 8, 2017 at 07:28amReply to: Document upload to package using REST API failing
Tuesday, August 8, 2017 at 08:40am