Companion

object Companion

Functions

Link copied to clipboard
fun fromFile(file: MPPFile): MultipartFile

Creates MultipartFile based on incoming MPPFile (common File in java, for example)

Link copied to clipboard
fun fromId(id: String): FileId

Creates FileId from the incomming id with believe that it is FileId

Link copied to clipboard
fun fromInput(filename: String, inputSource: () -> Input): MultipartFile

Creates MultipartFile based on incoming filename and inputSource

Link copied to clipboard
fun fromUrl(url: String): FileId

Creates FileUrl from the incomming url

Link copied to clipboard
operator fun invoke(file: MPPFile): MultipartFile