minio-js icon indicating copy to clipboard operation
minio-js copied to clipboard

Metadata or Header in presignedPut or presignedPost

Open rupamking1 opened this issue 4 years ago • 5 comments

No Option avilable to set custom header or metadata in presignedPut or presignedPost. Please Add metadata or header in presignedPut or presignedPost. This option is available in s3; How to add ["starts-with", "$key", "userdata/user1/"] manually?

https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html

rupamking1 avatar Sep 29 '21 08:09 rupamking1

Please have a look at: https://docs.min.io/docs/javascript-client-api-reference#presignedPostPolicy https://github.com/minio/minio-js/blob/master/examples/presigned-postpolicy.js

prakashsvmx avatar Sep 29 '21 09:09 prakashsvmx

I am not asking about how to create presigned post or put url, I know that.

Please try to understand, I need to verify user put operation and authenticated user will able to put, for that reason please tell me can I add any key value pair on put url, only specific user will able to put his data.

Is that possible to send http header or body for validate put operation?

rupamking1 avatar Sep 29 '21 12:09 rupamking1

It is unclear if it is application specific use case or missing s3 spec implementation.It would be great if you could add some details, code examples etc. to illustrate the issue.

prakashsvmx avatar Sep 30 '21 12:09 prakashsvmx

I already watched s3 has this feature on his Package but minio does not have. please implement verification header on minio.

hanumanjiblog avatar Sep 30 '21 13:09 hanumanjiblog

https://github.com/minio/minio-js/pull/1036 could you check this?

prakashsvmx avatar Aug 24 '22 12:08 prakashsvmx