Image uploaded to S3 cannot be displayed when run on Lambda
I'm trying to upload images to S3 via AWS Lambda using Hono, but when I open the image url it shows
My Setup:
The code for the uploading part is in the comment. It works perfectly fine on my local machine but once run on Lambda, the image is corrupted for whatever reason
The image cannot be displayed because it contains errorMy Setup:
- Frontend: SvelteKit, sending a multipart/form-data request with the image.
- Backend: AWS Lambda with Hono
The code for the uploading part is in the comment. It works perfectly fine on my local machine but once run on Lambda, the image is corrupted for whatever reason