File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,13 @@ void main() async {
51
51
final res = await general.redirect ();
52
52
print (res['result' ]);
53
53
54
- var file = InputFile (path: '../../resources/file.png' ,
54
+ var file = InputFile . fromPath (path: '../../resources/file.png' ,
55
55
filename: 'file.png' );
56
56
response = await general.upload (
57
57
x: 'string' , y: 123 , z: ['string in array' ], file: file);
58
58
print (response.result);
59
59
60
- file = InputFile (path: '../../resources/large_file.mp4' , filename: 'large_file.mp4' );
60
+ file = InputFile . fromPath (path: '../../resources/large_file.mp4' , filename: 'large_file.mp4' );
61
61
response = await general.upload (
62
62
x: 'string' , y: 123 , z: ['string in array' ], file: file);
63
63
print (response.result);
Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ void main() async {
78
78
final res = await general.redirect ();
79
79
print (res['result' ]);
80
80
81
- var file = InputFile (path: '../../resources/file.png' , filename: 'file.png' );
81
+ var file = InputFile . fromPath (path: '../../resources/file.png' , filename: 'file.png' );
82
82
response = await general.upload (
83
83
x: 'string' , y: 123 , z: ['string in array' ], file: file);
84
84
print (response.result);
85
85
86
- file = InputFile (path: '../../resources/large_file.mp4' , filename: 'large_file.mp4' );
86
+ file = InputFile . fromPath (path: '../../resources/large_file.mp4' , filename: 'large_file.mp4' );
87
87
response = await general.upload (
88
88
x: 'string' , y: 123 , z: ['string in array' ], file: file);
89
89
print (response.result);
You can’t perform that action at this time.
0 commit comments