| Index: lib/src/multipart_file.dart
|
| diff --git a/lib/src/multipart_file.dart b/lib/src/multipart_file.dart
|
| index 07758b9097fb5713eebfed084c0643c7da3a2b7f..9e40c64ab107c38ca6f3d6090d3277e5a64816f5 100644
|
| --- a/lib/src/multipart_file.dart
|
| +++ b/lib/src/multipart_file.dart
|
| @@ -9,7 +9,6 @@ import 'dart:convert';
|
|
|
| import 'package:http_parser/http_parser.dart';
|
| import 'package:path/path.dart' as path;
|
| -import 'package:stack_trace/stack_trace.dart';
|
|
|
| import 'byte_stream.dart';
|
| import 'io.dart' as io;
|
| @@ -93,8 +92,8 @@ class MultipartFile {
|
| io.assertSupported("MultipartFile.fromPath");
|
| if (filename == null) filename = path.basename(filePath);
|
| var file = io.newFile(filePath);
|
| - return Chain.track(file.length()).then((length) {
|
| - var stream = new ByteStream(Chain.track(file.openRead()));
|
| + return file.length().then((length) {
|
| + var stream = new ByteStream(file.openRead());
|
| return new MultipartFile(field, stream, length,
|
| filename: filename,
|
| contentType: contentType);
|
|
|