-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a new method SetUserMetadata to the PostPolicy #178
Conversation
string headerName = "x-amz-meta-" + key; | ||
this.policies.Add(new Tuple<string, string, string>("eq", "$" + headerName, value)); | ||
this.formData.Add(headerName, value); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SetKey() method already allows the user to set form data, and the custom metadata can be passed in with the x-amz-meta prefix. Is there a reason why an additional method would help
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is coming from here minio/minio-go#839
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
SetUserMetadata(key string, value string) is a better API IMO. Borrowing suggestion by @vadmeste on minio-go PR. |
Done |
Hi there,
here is a PR for a new feature I need for a project I am working on with @hnb2.
Feature
SetUserSpecifiedMetadata(key string, value string)
allows you to add user specified metadata following this guide which mention: