aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-bootstrap-upload/src/main/kotlin
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-11-26 17:36:16 +0100
committerRobert Jaros <rjaros@finn.pl>2019-11-26 17:36:16 +0100
commit9879259fc8ffe71e4dc1df80e3a0711d39961676 (patch)
tree4bcd3ac979773a152bccd1bcebed9ad26588e592 /kvision-modules/kvision-bootstrap-upload/src/main/kotlin
parentc1bc80c0b7f851f14f40f9b087b37af6c2be83f8 (diff)
downloadkvision-9879259fc8ffe71e4dc1df80e3a0711d39961676.tar.gz
kvision-9879259fc8ffe71e4dc1df80e3a0711d39961676.tar.bz2
kvision-9879259fc8ffe71e4dc1df80e3a0711d39961676.zip
Version 2.4.02.4.0
Dependencies upgrade: Kotlin 1.3.60, serialization 0.14.0, ktor 1.2.6, spring boot 2.2.1 and others
Diffstat (limited to 'kvision-modules/kvision-bootstrap-upload/src/main/kotlin')
-rw-r--r--kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl/treksoft/kvision/form/upload/UploadInput.kt2
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
}