You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For my example, let's say a user uploads a file in step 1 of the Wizard, then goes to step 2 and navigates to another page without submitting the form. What method can I use to detect this action so that I can delete the user's uploaded file and not have it junk up the file system?
I've gotten it so that the file is deleted on a reload but not if the user enters a URL into the browser and loads a new page.
The text was updated successfully, but these errors were encountered:
In general, since the server has no clue that the user has gone away (or indeed might come back), I don't think there is any explicit trigger that one can rely on. What I do is that I ensure all file storage is kept in a well-known tree and run a daily "batch" job that clears the tree of files which have been there more than 2 days.
Hello,
For my example, let's say a user uploads a file in step 1 of the Wizard, then goes to step 2 and navigates to another page without submitting the form. What method can I use to detect this action so that I can delete the user's uploaded file and not have it junk up the file system?
I've gotten it so that the file is deleted on a reload but not if the user enters a URL into the browser and loads a new page.
The text was updated successfully, but these errors were encountered: