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

Add StorageClass option to PutObjectArgs

Open roi-mashiah opened this issue 3 years ago • 1 comments

Hi, While using the dotnet SDK I ran in to a problem - can't set the StorageClass header to a custom one. I saw in the docs that the default storage class is STANDARD but some other options are supported in MinIO server. In other SDK's for MinIO such as the GO SDK, there is an option (https://min.io/docs/minio/linux/developers/go/API.html#putobject-ctx-context-context-bucketname-objectname-string-reader-io-reader-objectsize-int64-opts-putobjectoptions-info-uploadinfo-err-error) Thanks in advance!

roi-mashiah avatar Dec 19 '22 13:12 roi-mashiah

I believe it must be added to SupportedHeaders: https://github.com/minio/minio-dotnet/blob/52abff5dcc179aab5effa4b01dc269336ffccd81/Minio/Helper/OperationsHelper.cs#L296 if not as a method on PutObjectArgs.

klauspost avatar Dec 19 '22 13:12 klauspost