uploader file.remove(id)

Hi, i am trying to manipulate a file added to the uploader right after is has been added so i can verify size and max number of files etc. If the file does not meet my conditions then remove the file from the uploader list.

https://snippet.webix.com/ru5kbrjj

This is a simple snippet i modified to emulate the remove file onAfterFileAdd an will trow the same error i have on my app.

Uncaught TypeError: Cannot read property ‘status’ of undefined
at result.send (webix.js:15952)
at result.addFile (webix.js:28176)
at result._add_files (webix.js:28128)
at result. (webix.js:15853)
at HTMLInputElement. (webix.js:298)

To get the error, simply add a file to the uploader

I actually did what i wanted an other way with onBeforeFileAdd and return return false; that will simply not add the file to the list so no need to remove it.

https://snippet.webix.com/nan13dcz

But i would like to know if it is possible to do it with the files.remove onAfterFileAdd

Thank you

as you know onBeforeFileAdd is intended to use for such purpose.
but if you must use onAfterFileAdd then you can set autosend:false and use send(id) command manually if file is not removed.

Thank you intregal, you also pointed me into a way where i could probably do my own send command to chunk upload for large file support (2GB and more) that is not supported on all browser.