I try to make the actions of file manager as asyn operation. For example, after delete a item (file or folder) within UI, this request should be sent to server firstly, if the result from server is OK, then the item will be removed by the filemanager UI , if the result is fail or timeout, then the item should be still in the UI list. There are the 'Handler' definition which is used for this purpose, but the data structure of the request URL is too strict, not meet our requirements. So can we define custom handlers for (add, remove, rename, branch...) actions? Or there is other way to meet our requirement?
Another one is the api for reload data for filemanager, for example, now after delete item within UI, within 'onBeforeDeleteFile' event callback, I send request to server (ajax async), and then return false(not let UI auto delete the item). After the result sent back from server, I fetch the latest data for filemanager, but only the following way I can update the UI.
first fm.clearAll() then fm.parse(latestdata)
If there are big data, this way of updating data will bring negative impact to user, so is there another way for our purpose? I try to use fm.data.sync or fm.refresh... not work.
Now only upload a real file, there will be new item within filemanager, so if I want to add new file or folder into the list not by uploading a real file. Like add new custom action labeled as 'add', how to implement this within filemanager?