On version 5.1 of the filemanager and initializing the filemanager with:
on: {
‘onBeforeAdd’: function (id, obj, index) {
return false;
}
}
This is not preventing files from uploading to the server. In version 4 it did. The following javascript error is also thrown:
Uncaught TypeError: Cannot read property ‘$parent’ of undefined
at webix.DataStore.changeId (webix_debug.js:13530)
at o. (filemanager.js?v=bGpZAfwPnOEE1wLOAxlMPpQN12H4phUfc1KlMmkz8Tk:9)
at o.callEvent (webix_debug.js:546)
at o.js (webix_debug.js:36081)
at o.is (webix_debug.js:35907)
at o. (webix_debug.js:35882)
at XMLHttpRequest. (webix_debug.js:243)
This is due to the server upload action being called and returning an item which tries to replace the non-added one.
Is this a bug in the system or am I doing something wrong?