Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Minio Dart
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
images
Minio Dart
Commits
1520485d
Commit
1520485d
authored
3 years ago
by
xuty
Browse files
Options
Downloads
Patches
Plain Diff
Better upload progress on web
parent
77a2f4c7
Branches
Branches containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
lib/src/minio_client.dart
+7
-7
7 additions, 7 deletions
lib/src/minio_client.dart
pubspec.yaml
+1
-1
1 addition, 1 deletion
pubspec.yaml
with
10 additions
and
8 deletions
CHANGELOG.md
+
2
−
0
View file @
1520485d
# 3.4.0-pre
-
Better upload progress on web
# 3.3.3
# 3.3.3
-
Fix empty upload error
-
Fix empty upload error
-
Update README.md
-
Update README.md
...
...
This diff is collapsed.
Click to expand it.
lib/src/minio_client.dart
+
7
−
7
View file @
1520485d
...
@@ -24,29 +24,29 @@ class MinioRequest extends BaseRequest {
...
@@ -24,29 +24,29 @@ class MinioRequest extends BaseRequest {
return
const
ByteStream
(
Stream
.
empty
());
return
const
ByteStream
(
Stream
.
empty
());
}
}
if
(
body
is
Stream
<
Uint8List
>)
{
return
ByteStream
(
body
);
}
late
Stream
<
Uint8List
>
stream
;
late
Stream
<
Uint8List
>
stream
;
if
(
body
is
String
)
{
if
(
body
is
Stream
<
Uint8List
>)
{
stream
=
body
;
}
else
if
(
body
is
String
)
{
final
data
=
Utf8Encoder
()
.
convert
(
body
);
final
data
=
Utf8Encoder
()
.
convert
(
body
);
headers
[
'content-length'
]
=
data
.
length
.
toString
();
headers
[
'content-length'
]
=
data
.
length
.
toString
();
stream
=
Stream
<
Uint8List
>
.
value
(
data
);
stream
=
Stream
<
Uint8List
>
.
value
(
data
);
}
else
if
(
body
is
Uint8List
)
{
}
else
if
(
body
is
Uint8List
)
{
stream
=
Stream
<
Uint8List
>
.
value
(
body
);
stream
=
Stream
<
Uint8List
>
.
value
(
body
);
headers
[
'content-length'
]
=
body
.
length
.
toString
();
headers
[
'content-length'
]
=
body
.
length
.
toString
();
}
else
{
throw
UnsupportedError
(
'Unsupported body type:
${body.runtimeType}
'
);
}
}
stream
=
stream
.
transform
(
MaxChunkSize
(
1
<<
16
));
if
(
onProgress
==
null
)
{
if
(
onProgress
==
null
)
{
return
ByteStream
(
stream
);
return
ByteStream
(
stream
);
}
}
var
bytesRead
=
0
;
var
bytesRead
=
0
;
stream
=
stream
.
transform
(
MaxChunkSize
(
1
<<
16
));
return
ByteStream
(
return
ByteStream
(
stream
.
transform
(
stream
.
transform
(
StreamTransformer
.
fromHandlers
(
StreamTransformer
.
fromHandlers
(
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
1
−
1
View file @
1520485d
name
:
minio
name
:
minio
description
:
Unofficial MinIO Dart Client SDK that provides simple APIs to access any Amazon S3 compatible object storage server.
description
:
Unofficial MinIO Dart Client SDK that provides simple APIs to access any Amazon S3 compatible object storage server.
version
:
3.
3.3
version
:
3.
4.0-pre
homepage
:
https://github.com/xtyxtyx/minio-dart
homepage
:
https://github.com/xtyxtyx/minio-dart
issue_tracker
:
https://github.com/xtyxtyx/minio-dart/issues
issue_tracker
:
https://github.com/xtyxtyx/minio-dart/issues
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment