If this is for a backend system, you can create a "Resume/Verify" feature.
: Before serving the file, the system checks if the .MP4 is fully downloaded or corrupted. You have requested : Arquivo.Morto.S05E09.MP4.D...
If you can share the programming language you're using or the user's goal , I can provide a more specific code snippet or architectural plan. If this is for a backend system, you