diff --git a/CHANGELOG.md b/CHANGELOG.md index 0edb3dae1b4dd19692baf817cbc7d790f74fca07..82881edb07c5f79dfdce88e7befc6742c95bb740 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.0+1 + +- update README + ## 0.1.0 - Initial version, created by Stagehand diff --git a/README.md b/README.md index edd2495b51bce2dedffbb26a3a561e60275769c9..0cce5d8e4e4882068245edbc0c9b049a77afa262 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,6 @@ This is the _unofficial_ MinIO Dart Client SDK that provides simple APIs to acce **MinIO** ```dart -import 'package:minio/minio.dart'; - final minio = Minio( endPoint: 'play.min.io', accessKey: 'Q3AM3UQ867SPQQA43P2F', @@ -35,8 +33,6 @@ final minio = Minio( **AWS S3** ```dart -import 'package:minio/minio.dart'; - final minio = Minio( endPoint: 's3.amazonaws.com', accessKey: 'YOUR-ACCESSKEYID', @@ -44,6 +40,22 @@ final minio = Minio( ); ``` +**File upload** +```dart +import 'package:minio/io.dart'; +import 'package:minio/minio.dart'; + +void main() async { + final minio = Minio( + endPoint: 'play.min.io', + accessKey: 'Q3AM3UQ867SPQQA43P2F', + secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG', + ); + + await minio.fPutObject(bucket, object, 'path/to/file'); +} +``` + For complete example, see: [example] ## Features and bugs diff --git a/pubspec.yaml b/pubspec.yaml index 1cf0fc12435f06f6b3af19b677b6ddd1ad2c99a4..7211eb56ce585802b91b40e090a9bb46acf7188d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: minio description: Unofficial MinIO Dart Client SDK that provides simple APIs to access any Amazon S3 compatible object storage server. -version: 0.1.0 +version: 0.1.0+1 homepage: https://github.com/xtyxtyx/minio-dart issue_tracker: https://github.com/xtyxtyx/minio-dart/issues