Metadata not associated with Object in aws s3

I am using s3 javascript sdk to upload object and trying to associate some metadata with it based on some business logic. Lot of objects doesn't have the associated metadata. Console shows only one

Content-Type application/octet-stream

But some of the Objects has 3 Metadata which is correct value.

keys are 8 characters and value maximum 10 characters. I am adding 2 of these key/value pair.

Code :

var userMetaParam = { Bucket: bucket, Key: key, Body: JSON.stringify(item), Metadata: { "tasktype": taskType, "subtype" : subType } };

s3.putObject(userMetaParam , function(err, data) { "Some Business Logic" })

Randomly some of the objects are missing MetaData values. Please let me know what I am missing.

Thanks in advance for looking.

链接地址: http://www.djcxy.com/p/94626.html

上一篇: 检测编码并使所有的UTF

下一篇: 元数据不与aws s3中的Object相关联