How to retrieve the Metadata from nodejs aws s3 getObject callback data?

后端 未结 1 501
野性不改
野性不改 2021-01-06 10:49

I am trying to upload/download an audio chunk file to/from S3 using AWS node SDK. I have tried base64 approach and it works fine. But I am not able to get the Metadata back

相关标签:
1条回答
  • 2021-01-06 11:29

    Is your metaInfo value a string?

    Referencing the sdk api docs, Metadata is a string map (ala ~ Metadata: {metaInfo: "myMetaInfoString"}. I've tested your code using a string as the value for metaInfo and it does return correctly under the data.Metadata.metaInfo reference.

    0 讨论(0)
提交回复
热议问题