You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Post(path:url)
@multipartFuture<Response> postFileAndData(
@Query("type") int type,
@Query("title")
String title,
@Query("email") String email ,
@Query("owner") String owner,
@Query("isFileMandatory") bool isFileMandatory,
@Part("formdata") var jsondata,
@PartFile("file") List<PartFile> file);
List<http.MultipartFile> list =newList();
if (_paths !=null) {
var multipat =await http.MultipartFile.fromPath(
"file", _paths.values.toList()[0].toString());
list.add(multipat);
}
var apiService =PostApiService.create();
final response =await apiService.postFileAndData(
2,
title,
"mail@student.edu.au",
"he-sso@edu.au",
false,
dataPostJson,
null);
// i want to pass the list in the place of null
The text was updated successfully, but these errors were encountered:
lejard-h
changed the title
I want to upload the list of multipart files using the flutter chopper library but it is not accepting the List<MultipartFile> as a parameter if any conversion needed please suggest me
Support List<MultipartFile>
Jul 1, 2019
In the chopper changelog for 2.4.1 you have written "Deprecate @fieldfield, use @partfile instead",
that @fieldfield should be changed to @FileField..Please update these latest enhacements sample request code in the readme or in the example, so that it would be more eye caching for the users
// i want to pass the list in the place of null
The text was updated successfully, but these errors were encountered: