Angular / AWS S3 - Upload file to AWS S3 using Presigned url Angular / AWS S3 - Upload file to AWS S3 using Presigned url angular angular

Angular / AWS S3 - Upload file to AWS S3 using Presigned url


Finaly, I found the reason why it was not working :)The contentType was missing during the generation of presignedUrl;

const s3Params = {    Bucket: process.env.AVATAR_BUCKET,    Expires: 60 * 60,    ACL: 'public-read',    Key: fileName,    ContentType: 'image/jpeg' // need to be done dynamically};