# uniUpload

suspend fun < T > ERROR CLASS: Symbol not found for HttpClient. uniUpload (url: String , file: MPPFile , resultDeserializer: DeserializationStrategy< T >, additionalData: Map < String , Any > = emptyMap(), headers: ERROR CLASS: Symbol not found for Headers = Headers.Empty, stringFormat: StringFormat = Json, onUpload: ERROR CLASS: Symbol not found for ProgressListener = ProgressListener { _, _ -> }): T ?(source)

Additional variant of uniUpload which will unify sending of some MPPFile with the server

#### See also

dev.inmo.micro_utils.ktor.server.uniloadMultipartFile

suspend fun < T > ERROR CLASS: Symbol not found for HttpClient. uniUpload (url: String , info: UniUploadFileInfo , resultDeserializer: DeserializationStrategy< T >, additionalData: Map < String , Any > = emptyMap(), headers: ERROR CLASS: Symbol not found for Headers = Headers.Empty, stringFormat: StringFormat = Json, onUpload: ERROR CLASS: Symbol not found for ProgressListener = ProgressListener { _, _ -> }): T ?(source)

Additional variant of uniUpload which will unify sending of some UniUploadFileInfo with the server

#### See also

dev.inmo.micro_utils.ktor.server.uniloadMultipartFile

suspend fun < T > ERROR CLASS: Symbol not found for HttpClient. uniUpload (url: String , fileName: FileName , mimeType: String , inputAllocator: LambdaInputProvider , resultDeserializer: DeserializationStrategy< T >, additionalData: Map < String , Any > = emptyMap(), headers: ERROR CLASS: Symbol not found for Headers = Headers.Empty, stringFormat: StringFormat = Json, onUpload: ERROR CLASS: Symbol not found for ProgressListener = ProgressListener { _, _ -> }): T ?(source)

Additional variant of uniUpload which will unify sending of some UniUploadFileInfo (built from fileName, mimeType and inputAllocator) with the server

#### See also

dev.inmo.micro_utils.ktor.server.uniloadMultipartFile

expect suspend fun < T > ERROR CLASS: Symbol not found for HttpClient. uniUpload (url: String , data: Map < String , Any >, resultDeserializer: DeserializationStrategy< T >, headers: ERROR CLASS: Symbol not found for Headers = Headers.Empty, stringFormat: StringFormat = Json, onUpload: ERROR CLASS: Symbol not found for ProgressListener = ProgressListener { _, _ -> }): T ?(source)

Will execute submitting of multipart data request

#### Parameters

data

Map where keys will be used as names for multipart parts and values as values. If you will pass dev.inmo.micro_utils.common.MPPFile (File from JS or JVM platform). Also you may pass UniUploadFileInfo as value in case you wish to pass other source of multipart binary data than regular file

#### See also

dev.inmo.micro_utils.ktor.server.handleUniUpload