From 9879259fc8ffe71e4dc1df80e3a0711d39961676 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 26 Nov 2019 17:36:16 +0100 Subject: Version 2.4.0 Dependencies upgrade: Kotlin 1.3.60, serialization 0.14.0, ktor 1.2.6, spring boot 2.2.1 and others --- .../src/main/kotlin/pl/treksoft/kvision/form/upload/UploadInput.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvision-modules/kvision-bootstrap-upload/src/main') diff --git a/kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl/treksoft/kvision/form/upload/UploadInput.kt b/kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl/treksoft/kvision/form/upload/UploadInput.kt index 20859ad7..932bd444 100644 --- a/kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl/treksoft/kvision/form/upload/UploadInput.kt +++ b/kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl/treksoft/kvision/form/upload/UploadInput.kt @@ -268,7 +268,7 @@ open class UploadInput(uploadUrl: String? = null, multiple: Boolean = false, cla val list = mutableListOf() for (key in js("Object").keys(fileStack)) { val nativeFile = fileStack[key].file as File - val kFile = KFile(nativeFile.name, nativeFile.size, null) + val kFile = KFile(nativeFile.name, nativeFile.size.toInt(), null) nativeFiles[kFile] = nativeFile list += kFile } -- cgit