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 {
5151 final res = await general.redirect ();
5252 print (res['result' ]);
5353
54- var file = InputFile (path: '../../resources/file.png' ,
54+ var file = InputFile . fromPath (path: '../../resources/file.png' ,
5555 filename: 'file.png' );
5656 response = await general.upload (
5757 x: 'string' , y: 123 , z: ['string in array' ], file: file);
5858 print (response.result);
5959
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' );
6161 response = await general.upload (
6262 x: 'string' , y: 123 , z: ['string in array' ], file: file);
6363 print (response.result);
Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ void main() async {
7878 final res = await general.redirect ();
7979 print (res['result' ]);
8080
81- var file = InputFile (path: '../../resources/file.png' , filename: 'file.png' );
81+ var file = InputFile . fromPath (path: '../../resources/file.png' , filename: 'file.png' );
8282 response = await general.upload (
8383 x: 'string' , y: 123 , z: ['string in array' ], file: file);
8484 print (response.result);
8585
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' );
8787 response = await general.upload (
8888 x: 'string' , y: 123 , z: ['string in array' ], file: file);
8989 print (response.result);
You can’t perform that action at this time.
0 commit comments