I have an webapp which dynamically generates a file and stores it on the server. When a user comes along, this file is served, after which it gets deleted. Each user gets their own generated file after which it becomes useless.
Is there a way to know if the user managed to download the file fully, so that it may be deleted and not clogging up my server with outdated files?
At the moment the problem is a user is clicking "Download file" then it being cancelled or failed, so they try again but its been deleted.