I have 2 questions concerning only office for the document storage service:
- What should be returned in case the document could not be saved? If it couldn’t be saved I assume the versionId shouldn’t be updated?
- If the editor is closed after editing we receive status 2 after 10 seconds indicating we can save the document, but what happens in case someone reopens the document within that 10 seconds? Is the document server not being called?
Thanks a lot for your answer.
Best,
Evrard
Hello @evrardts
What should be returned in case the document could not be saved?
You will receive statuses 3 and 7 in saving scenarios, if save process fails for some reason. Please check it out: ONLYOFFICE Api Documentation - Callback handler
If it couldn’t be saved I assume the versionId shouldn’t be updated?
To be honest, I’m not sure that I understood this idea right. The new file version is built by Document server and sent to a storage in case of successful save process. In other words, Document server sends new version of a file to a storage, but if save process failed, there’re no any changes.
Probably this title will be useful: ONLYOFFICE Api Documentation - Saving File
If I misunderstood the request, please clarify it.
- If the editor is closed after editing we receive status 2 after 10 seconds indicating we can save the document, but what happens in case someone reopens the document within that 10 seconds? Is the document server not being called?
This is Save delay feature, please check it out: ONLYOFFICE Api Documentation - Saving File
So, for example, a user accidentally closed a browser and instantly (in a few seconds) re-opened it for file editing. This way user has come back to editing session (Document server has not started save scenario).