Hamza
12/25/2020, 10:06 AMpost("/output") {
    val parts = call.receiveMultipart().readAllParts()
    val files = mutableMapOf<String, String>()
    var shares = 0
    parts.forEach {
        when (it) {
            is PartData.FileItem -> files[it.originalFileName ?: ""] = it.provider().readText()
            is PartData.FormItem -> if (it.name == "field-name") shares = it.value.toIntOrNull() ?: 200000
            else -> {
            }
        }
    }
    // ... process
2020-12-25 010:05:06.526 INFO  Application - Unhandled: POST - /output, io failed
What would the cause of this be? 🤔