Skip to content

Commit 879dd29

Browse files
committed
fix input file def
1 parent 89e862a commit 879dd29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Upload File:
4141
```dart
4242
Storage storage = Storage(client);
4343
44-
InputFile file = InputFile(path: './path-to-file/image.jpg', fileName: 'image.jpg');
44+
InputFile file = InputFile(path: './path-to-file/image.jpg', filename: 'image.jpg');
4545
4646
storage.createFile(
4747
bucketId: '[BUCKET_ID]',

lib/src/input_file.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:http/http.dart' show MultipartFile;
33
class InputFile {
44
final MultipartFile? file;
55
final String? path;
6-
final String? fileName;
6+
final String? filename;
77

8-
InputFile({this.file, this.path, this.fileName});
8+
InputFile({this.file, this.path, this.filename});
99
}

0 commit comments

Comments
 (0)