Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
5 replies
Balduin

Posting PDF to S3

Hello,
I Hope this is the right section for Question, it feels like it is.

I am working on an Project, part of it is an REST Api and different front ends (admin page, employee page, customer page ).
We are using aws s3 to save relevant files, like customer bills, employees qualifications, etc. Primarily PDF (if not only).
I am struggling to POST PDF documents to S3.
Currently it goes from client -> rest api -> s3.
The PDF Saved on S3 is blank.
I Tried debugging client -> api-> client.
Here is the PDF also blank.
So I guess I am not sending the PDF correctly, googling gives me many different solutions, none work.
I am working in the nextjs framework.
Anybody already had issues with that?
Was this page helpful?