Closed zqr95518 closed 4 months ago
Use extraHeaders
argument
Use
extraHeaders
argument
Can I have a example?
Use
extraHeaders
argumentCan I have a example?
I try this and solve the problem. Thanks.
Multimap<String, String> extraHeaders = HashMultimap.create();
extraHeaders.put("Content-Type", entity.getContentType());
ObjectWriteResponse objectWriteResponse = MinioService.minioClient.composeObject(
ComposeObjectArgs.builder()
.bucket(entity.getBucketName())
.object(entity.getObjectName())
.headers(extraHeaders)
.sources(sourceObjectList)
.build()
https://github.com/minio/minio-js/issues/1304#issue-2342833209 Have the same problem. When I composeObject contentType become application/octet-stream.
PutObject with contentType
Can't set contentType use composeObject