Post a Photo Workflow

Hello bb peeps!  I'm new here (as you can tell I'm sure) and I am really struggling with uploading a photo/document/attachment.


I undertsand the workflwo is to:
  1. Create a document/get instructions from bb by calling the POST Document API
  2. Uplaod the photo and thumbnail to the urls in the response form above
  3. Link the document/photo to the constituant
I'm stuck at step 3 (I think).  Maybe I'm stuck at step two but since we don't get a proper JSON resposne from step two, I'm sort fo guessing.

From step two I get:


HTTP/1.1 100 Continue HTTP/1.1 201 Created Content-Length: 0 Content-MD5: 9+jrlga57xe1lsbdZG4WPA== Last-Modified: Tue, 28 Jul 2020 19:24:50 GMT ETag: "0x8D8332BE5A12BCC" Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: fa2e46c2-d01e-00b7-1914-65523e000000 x-ms-version: 2015-12-11 x-ms-request-server-encrypted: true Date: Tue, 28 Jul 2020 19:24:49 GMT


And then when I try to do step three I get:

[

{

"error_code" : 50009,

"error_name" : "DocumentBusinessLogicInvalidUploadedFile",

"message" : "The document has not been uploaded or is invalid.",

"raw_message" : "The document has not been uploaded or is invalid."

}

]

Any thoughts?

Comments

Categories