toMultiPartFile static method
Implementation
static http.MultipartFile toMultiPartFile(io.File file, String fieldName) =>
http.MultipartFile(fieldName, file.openRead(), file.lengthSync(),
filename: file.path.split(io.Platform.pathSeparator).last);