Amazon S3 - x-amz-meta

Dokepapefiene

New Member
I'm uploading photos, via PHP, to an Amazon S3 bucket. Everything is working great so far.My question is about \[code\]x-amz-meta\[/code\]. Would I use \[code\]x-amz-meta\[/code\] key/value pairs to store data like the User ID of the person uploading and their account type (free, premium, etc.)? Or do I store this as regular metadata, not prefixed with \[code\]x-amz-meta\[/code\]?Currently sample metadata for a photo looks like:\[code\]Key: x-amz-meta-user-id Value: 1Key: x-amz-meta-user-type Value: freeKey: Content-Type Value: image/jpeg\[/code\]Does that make sense? I hope so. Just checking I'm storing this metadata in the right way.Thanks!Jack
 
Back
Top