toMultiPartFile static method

MultipartFile toMultiPartFile(
  1. File file,
  2. String fieldName
)

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);