uniUpload

actual suspend fun <T> <Error class: unknown class>.uniUpload(url: String, data: Map<String, Any>, resultDeserializer: <Error class: unknown class><T>, headers: <Error class: unknown class>, stringFormat: <Error class: unknown class>, onUpload: OnUploadCallback): T?

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

suspend fun <T> <Error class: unknown class>.uniUpload(url: String, file: MPPFile, resultDeserializer: <Error class: unknown class><T>, additionalData: Map<String, Any> = emptyMap(), headers: <Error class: unknown class> = Headers.Empty, stringFormat: <Error class: unknown class> = Json, onUpload: OnUploadCallback = { _, _ -> }): T?

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: unknown class>.uniUpload(url: String, info: UniUploadFileInfo, resultDeserializer: <Error class: unknown class><T>, additionalData: Map<String, Any> = emptyMap(), headers: <Error class: unknown class> = Headers.Empty, stringFormat: <Error class: unknown class> = Json, onUpload: OnUploadCallback = { _, _ -> }): T?

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: unknown class>.uniUpload(url: String, fileName: FileName, mimeType: String, inputAllocator: LambdaInputProvider, resultDeserializer: <Error class: unknown class><T>, additionalData: Map<String, Any> = emptyMap(), headers: <Error class: unknown class> = Headers.Empty, stringFormat: <Error class: unknown class> = Json, onUpload: OnUploadCallback = { _, _ -> }): T?

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: unknown class>.uniUpload(url: String, data: Map<String, Any>, resultDeserializer: <Error class: unknown class><T>, headers: <Error class: unknown class> = Headers.Empty, stringFormat: <Error class: unknown class> = Json, onUpload: OnUploadCallback = { _, _ -> }): T?

Will execute submitting of multipart data request

See also

dev.inmo.micro_utils.ktor.server.handleUniUpload

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

actual suspend fun <T> <Error class: unknown class>.uniUpload(url: String, data: Map<String, Any>, resultDeserializer: <Error class: unknown class><T>, headers: <Error class: unknown class>, stringFormat: <Error class: unknown class>, onUpload: OnUploadCallback): T?

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