This repository was archived by the owner on Feb 24, 2024. It is now read-only.

Description
There's an issue right now with binaries sent using multipart/form-data PostgREST/postgrest#922 (comment), but there is an alternative using Javascript, for example with fetch:
const input = document.getElementById('myFileInput'');
fetch('http://localhost:3000/rpc/upload_binary', {
method: 'POST',
headers: {
"Content-Type": "application/octet-stream"
},
body: input.files[0]
})
An example using fetch could be added while working on the multipart/form-data implementation.