I got this unusual error “Not an Image: Index.zul” while building a CRUD Application with Zk framework. Any ideas how this can be solved?
Error
Not an Image: index.zul
OK
I got an error while building a CRUD Application with Zk framework
Hello,
For this error to occur, the media file is not an acceptable file. Implement in your code error handlers. Try to add a dialog box before you remove any media item from the storage. Create a button so that the OnClick event connects with dialog error message. Check the way you are using the model class to store data. Namespace should be created so that the ZK framework binds the data with the annotations. Let say you have 5 images that you want to upload, then Fileupload.get(int) needs to be used. I am attaching to this message ZKfr.txt that has an example showing how to upload files.
I hope this is useful.