Response on remove in filemanager

Hello,
we want to use the webix UI for display values from a cloud service. To get the data or make changes we have an API to use.
When I use the handler for remove, my code removes the file in webix and the cloud. But when an error from the cloud, the webix delete nevertheless. The onErrorResponse is not fired and the onSuccessResponse give me the response but the entry is deleted.
I hope you understand my problem. How can I stop the removal from webix when my backend failed?

Hello,

Please, pay attention to the error response from the cloud service. Webix widgets can distinquish a server error if

  • xhr status code is >=400 or 0
  • there’s no response data at all
  • response data contains JSON string with the status field with an “error” or “invalid” value

Is it possible with your service? If not, you will probably need to wrap your save requests into a custom proxy.

The response is >= 400. How can I tell this webix?
The remove send a JsonArray with ‘ok’ or ‘error’ back. But the item is still delete with ‘error’.