PutObject - Upload object. Uploads using single PUT call.
(ctx context.Context, bucket, object string, data io.Reader, size int64, md5Base64, sha256Hex string, opts PutObjectOptions)
| 71 | |
| 72 | // PutObject - Upload object. Uploads using single PUT call. |
| 73 | func (c Core) PutObject(ctx context.Context, bucket, object string, data io.Reader, size int64, md5Base64, sha256Hex string, opts PutObjectOptions) (UploadInfo, error) { |
| 74 | hookReader := newHook(data, opts.Progress) |
| 75 | return c.putObjectDo(ctx, bucket, object, hookReader, md5Base64, sha256Hex, size, opts) |
| 76 | } |
| 77 | |
| 78 | // NewMultipartUpload - Initiates new multipart upload and returns the new uploadID. |
| 79 | func (c Core) NewMultipartUpload(ctx context.Context, bucket, object string, opts PutObjectOptions) (uploadID string, err error) { |