diff --git a/lib/io.dart b/lib/io.dart index 6b20b1985155aa2f5dc1848506e4e38d77dca192..5aafc0be337787808103f2b39908e90aec0c90ae 100644 --- a/lib/io.dart +++ b/lib/io.dart @@ -28,7 +28,7 @@ extension MinioX on Minio { ); } - return putObject(bucket, object, file.openRead(), stat.size); + return putObject(bucket, object, file.openRead(), stat.size, metaData); } /// Downloads and saves the object as a file in the local filesystem. diff --git a/lib/src/minio.dart b/lib/src/minio.dart index 670ddb1a80aedff180714172c79a6b3090a7c435..7a4c864817fa739771199e6be042e9dd4b800690 100644 --- a/lib/src/minio.dart +++ b/lib/src/minio.dart @@ -841,9 +841,9 @@ class Minio { String bucket, String object, Stream<List<int>> data, - int size, { + int size, Map<String, String> metadata, - }) async { + ) async { MinioInvalidBucketNameError.check(bucket); MinioInvalidObjectNameError.check(object); diff --git a/pubspec.yaml b/pubspec.yaml index 51be176712de6b5cfef7802c7f368261c303d4cd..c785fe5e039461bdb4784c67c073c52dbb36d102 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: minio description: Unofficial MinIO Dart Client SDK that provides simple APIs to access any Amazon S3 compatible object storage server. -version: 1.1.0-pre -homepage: https://github.com/xtyxtyx/minio-dart +version: 1.1.0-pre-hlck +homepage: https://github.com/hlacik/minio-dart issue_tracker: https://github.com/xtyxtyx/minio-dart/issues environment: