Re-question
environment : swift, Nodejs, s3, lambda, aws-serverless-express module
- Problem:
After uploading AS multipart Format with Alamofire(multipart/form-data) on swift, The image is broken on the s3 in AWS
code:
let photoKey = value.originalname + insertedReviewId + `_${i}.jpeg`
let photoParam = {
Bucket: bucket,
Key: photoKey,
Body: value.buffer,
ACL: "public-read-write",
ContentType: value.mimetype, /* minetype: image/jpege */
};
//image upload
let resultUploadS3 = await s3.upload(photoParam).promise();
Thanks to read