重问
环境:swift,Nodejs,s3,lambda,aws-serverless-express模块
快速上传了带有Alamofire(multipart / form-data)的AS multipart格式后,图像在AWS的s3上损坏了>>
代码:
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();
感谢阅读
请求环境:swift,Nodejs,s3,lambda,aws-serverless-express模块问题:在swift上上传带有Alamofire(multipart / form-data)的AS multipart格式后,图像在...上破裂了]]
自我回答