Is there a way to automatically remove a temporary file from the server when a user closes the page? I don't have access to a default server-side callback for this action.
I attempted to call a server-side method using an implementation of ICallbackEventHandler
when the user closes the page. However, I encountered an issue where the server-side method does not trigger when the page is closed. It only responds if the page is still open. I would prefer not to prevent the page from closing while waiting for a server response to manually close it.
If stopping the page from closing is necessary, I am seeking guidance on the most efficient approach to achieve this.
Thank you in advance.