This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
Add support for FileReader
Pre-release
Pre-release
- Add FileReader support, many thanks to @DineshSolanki and @frnknglrt for issue request and implementation.
Example:
val imageString = KVar("")
Kweb(port = 8008) {
doc.body.new {
val input = fileInput()
input.onFileSelect {
input.retrieveFile {
imageString.value = it.base64Content
}
}
img().setAttribute("src", imageString)
}
}