Index: pkg/http/lib/src/multipart_file.dart |
diff --git a/pkg/http/lib/src/multipart_file.dart b/pkg/http/lib/src/multipart_file.dart |
index a0b50cb4fa0b2d596161ad715f9d49f3c54df505..50f47047117f9a0164299a4b8a8dd103a24f17b4 100644 |
--- a/pkg/http/lib/src/multipart_file.dart |
+++ b/pkg/http/lib/src/multipart_file.dart |
@@ -87,7 +87,7 @@ class MultipartFile { |
{String filename, ContentType contentType}) { |
if (filename == null) filename = new Path(file.name).filename; |
return file.length().then((length) { |
- var stream = wrapInputStream(file.openInputStream()); |
+ var stream = new ByteStream(file.openRead()); |
return new MultipartFile(field, stream, length, |
filename: filename, |
contentType: contentType); |