How to manage uploaded files so they don't become orphaned files?

Hello everyone, I was thinking about how you handle with the files that your users upload using file/picture uploader and especially in cases that use multifile uploader.

I haven’t tested specific plugins, but what I know is that using the native elements, if a user loads a file but doesn’t complete the operation (clicks on a button to submit a form, create an entry in the DB, etc.) and gives up on the operation, closes the window, etc., the file is still stored in the File Manager and its reference (URL) is lost, preventing us from deleting it from the File Manager properly.

Any tips on this?