AWS S3上传后,图像损坏

问题描述 投票:0回答:1

重问

环境:swift,Nodejs,s3,lambda,aws-serverless-express模块​​

  1. 问题:

快速上传了带有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格式后,图像在...上破裂了]]

node.js amazon-web-services amazon-s3 aws-lambda api-gateway
1个回答
0
投票

自我回答

© www.soinside.com 2019 - 2024. All rights reserved.