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

How to set custom metadata to Object as part of putObject call

Open ghost opened this issue 10 years ago • 11 comments

AWS S3 provides an API to set custom ObjectMetadata using which you can set custom properties such as etag / cache control headers. Is it possible to have ability to set such metadata via MinioClient API?

ghost avatar Aug 18 '16 06:08 ghost

AWS S3 provides an API to set custom ObjectMetadata using which you can set custom properties such as etag / cache control headers. Is it possible to have ability to set such metadata via MinioClient API?

Only minio-go currently supports it as part of 'responseHeaders' in PresignedGetObject() API.

harshavardhana avatar Aug 18 '16 06:08 harshavardhana

@balamurugana any plan to support this. This would be a very helpful feature.

ghost avatar Oct 05 '16 18:10 ghost

@sachinwalia2k8 No immediate plan.

balamurugana avatar Oct 05 '16 22:10 balamurugana

minio-go now supports PutObjectWithMetadata() - this can be now implemented with minio-java.

harshavardhana avatar Dec 18 '16 11:12 harshavardhana

This would be very useful feature for us as well. The ObjectStat object would probably also need a way to be able to read the metadata back when performing a statObject call.

cliffcotino avatar Jul 18 '17 08:07 cliffcotino

@cliffcotino thanks for showing interest on this feature. I will add it ASAP.

balamurugana avatar Jul 18 '17 08:07 balamurugana

Cool! Thanks for the quick response.

cliffcotino avatar Jul 18 '17 08:07 cliffcotino

@balamurugana will this be added to go sdk as well?

ghost avatar Jul 18 '17 13:07 ghost

Go SDK already has this @sachinwalia2k8

harshavardhana avatar Jul 18 '17 15:07 harshavardhana

@sachinwalia2k8 will it be possible to get in touch with you regarding couple of questions on your tusd deployment

nitisht avatar Jun 01 '18 08:06 nitisht

Why did you guys add additional metadata param to upload object from InputStream ONLY???

marcadella avatar Jan 08 '19 10:01 marcadella