API connector - Post.body as a binary file

JS Fetch.Post binary body is a standard way of pushing a binary file around in the context of APIs where the browser and using a “form” do not apply.

  • getting the file as a blob/ArrayBuffer from the storage layer should be a requirement
  • sending the above blob/ArrayBuffer as the body of a POST should be a requirement

re - Sending file via API connector - #9 by aaronsheldon

implement the equivalent of

curl -X POST --data-binary @filePath

1 Like

Use the native HTML tool in designer ( 2 lines of html followed by the ““script”” tag ). This will mimic either the Curl expression in the OP or a Postman post of a binary file. The endpoint serving the http calls is external server process ( node.express ) .

get the Code here

Note: this worked without edits on the page header . Env is the free plan .

3 Likes