Upload Pdf file to Amazon S3 using Nextjs route handler
I’ve been attempting to upload a PDF to S3 using a Next.js route handler. However, I’m encountering a server error 500 when sending the post request. When I tried sending the request without the PDF file, it was successful. It seems that the code for uploading the PDF is the issue.