File uploader validation

Hi Webix Team,

I want to add a validation for file uploder in which I want to restrict user to add max one file in one uploader.

How can I do that?

https://snippet.webix.com/92bd0102

https://docs.webix.com/api__ui.uploader_multiple_config.html

to validate file you can use onBeforeFileAdd event
https://docs.webix.com/api__ui.uploader_onbeforefileadd_event.html

@intregal,

I have tried it, but it replaces my existing uploaded file. It should not replace my uploded file.

https://snippet.webix.com/gt10e5qh

try this workaround
https://snippet.webix.com/tp1ybrkz