Hello! The following question arose: If a user loads files via an html form to the server (everything is as it should be, that is, files are loaded into a temporary folder, a list of just uploaded files is shown via ajax), and suddenly, for unknown reasons, it closes / leaves the page . How to get rid of just downloaded files? Thanks, everyone who can help =)

  • Do I need to strain and monitor every such download? Can take the path of least resistance? The easiest way is to write a small script that will clear this folder, hang it on cron, which will run the script at a certain time, for example, once a day. - Deonis

1 answer 1

Kron. Deleting files that are, for example, older than one hour