I upload photos via PHP to an Amazon S3 bucket. So far, everything is working fine.
My question is about x-amz-meta. Do I use key / value pairs to store data, such as the user ID for downloading a person and the type of his account (free, premium, etc.)? Or am I saving this as regular metadata, not a prefix with x-amz-meta?
Currently, metadata samples for photography are as follows:
Key: x-amz-meta-user-id Value: 1
Key: x-amz-meta-user-type Value: free
Key: Content-Type Value: image/jpeg
It makes sense? I hope so. Just making sure that I store this metadata correctly.
Thank!
Jack
source
share