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
implement the equivalent of
curl -X POST --data-binary @filePath