Files API Uploading Blank Files NodeJS/AWS

Hi,

I’m trying to write a file upload endpoint in my API gateway. The files seem to be uploading, with the right file size and type but no content. Like a PDF with 3 blank pages, or an image with a broken link. What format am I supposed to be sending file content in? The documentation is very bare and I can’t seem to solve the issue. Currently, it’s sending a Buffer, which the API accepts but clearly doesn’t translate properly.

Thanks in advance!

Hi, i recently experienced something similar. It turned out that the file had the wrong access rights. So we build a workflow to set the acces right to public.

Hopefully this helps.

I actually figured this out yesterday, it ended up being that my AWS
serverless function wasn’t outputting binary data. I had to set the
function to return binary.