Uploading image file to S3

0

My image files are automatically converting into octet-stream while uploading to S3 via multer-s3 with node js, API gateway and lambda. It was working fine when my node app was on vercel. What possibly could have gone wrong?

demandé il y a un an646 vues
1 réponse
0

Check this out. By default the content type is set to application/octet-stream. If you want multer-s3 to automatically find the content-type of the file, use the multerS3.AUTO_CONTENT_TYPE constant.

https://www.npmjs.com/package/multer-s3-v2#setting-custom-content-type

AWS
répondu il y a un an
  • Hi, I am already using multerS3.AUTO_CONTENT_TYPE and it was working fine until now but it’s not working when I moved the node app to Api gateway and lambda.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions