toFile method

MultipartFile toFile(
  1. int id
)

Create a MultipartFile from the attachment

Implementation

MultipartFile toFile(int id) => MultipartFile.fromBytes("files[$id]", content, filename: filename);