Skip to content
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
Compare
Choose a tag to compare
@sanity sanity released this 16 Oct 23:37
· 1380 commits to master since this release

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)
        }
    }