Hi. Whenever I use an `Upload` it gives as excepti...
# kvision
p
Hi. Whenever I use an
Upload
it gives as exception (on 5.1.1)
Copy code
main.bundle.js:2319 Uncaught TypeError: Cannot read properties of null (reading 'src')
    at getLoadingUrl (fileinput.js?9888:49)
    at Object.eval (fileinput.js?9888:58)
    at eval (fileinput.js?9888:14)
    at eval (fileinput.js?9888:20)
The object is initialized as following:
Copy code
uploadControl = upload("/kv/upload") {
    allowedFileTypes = setOf("image")
    showPreview = false
}
Am I doing something wrong?