Reputation: 1951
I'm trying to upload several thousand song files to Amazon S3. All of these files have metadata already associated with them such as author, genre, etc. Is there any way to preserve this metadata so that it appears in the S3 Management Console when the files are uploaded?
If not, can you suggest a way to easily add this metadata to the songs? Thanks for your help.
Upvotes: 2
Views: 563
Reputation: 400
You can create a collection of metadata "key" "value". Then you give your request this collection as parameter.
In C# it's
InitiateMultipartUploadRequest initiateMultipartUploadRequest =
new InitiateMultipartUploadRequest()
.WithBucketName(_transferUtility.BucketName)
.WithKey(_key)
.WithMetaData(collection);
It can be any other Request.
This MetaData is shown in S3 Management Console as metadata with a Prefix.
Upvotes: 1