diff options
Diffstat (limited to 'kvision-modules/kvision-bootstrap-upload')
-rw-r--r-- | kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl/treksoft/kvision/form/upload/UploadInput.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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<KFile>() 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 } |