Skip to content

Commit

Permalink
configuring minio client for md5 checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
rayjanoka committed Feb 27, 2023
1 parent 52d0a36 commit 6ba5679
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/minio.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ func (m *Minio) GetObject(ctx context.Context, bucket string, key string) (Objec

func (m *Minio) PutObject(ctx context.Context, bucket string, key string, reader io.Reader, objectSize int64, opts PutOptions) (UploadInfo, error) {
putOpts := minio.PutObjectOptions{
ContentType: opts.ContentType,
NumThreads: opts.NumThreads,
PartSize: opts.PartSize,
ContentType: opts.ContentType,
NumThreads: opts.NumThreads,
PartSize: opts.PartSize,
SendContentMd5: true,
}

if opts.ETag != "" {
Expand Down

0 comments on commit 6ba5679

Please sign in to comment.