No, I am not asking for this.
I think you did not get my question, I am talking about user's perspective.
We can't make user to do this all the time.
My question is simple,
What if user closes the window in the middle of the document.In this case also OnlyOffice call my CallBackUrl and my server stores the file.
How to avoid this?
Note:User closing the window in the middle because he do not want to save the document.
Please revert if you need more clarification on this.