The recipient's browser checks it
When the last piece has arrived, the recipient's browser checks that the file is exactly the one you sent.
If anything is missing or changed, the recipient's browser throws the file away. You see that it arrived only when the check has passed.
Checking the file
The recipient's browser hashes the file as it arrives, and checks the size, the number of chunks, the padding and the checksum against END. Only when everything matches is the file finished. A frame that fails to decrypt, a checksum that doesn't match or any other failed check throws away what was written.
A lost connection that doesn't come back (see Connecting the two browsers) is different. If every frame so far checked out, the recipient's page keeps what arrived, in memory or in the file they chose to save to, and Try again continues from there. Try again makes a new connection with a new key. If the sender offers the same file again, with the same name, size, type, chunk size and sender's name, the page doesn't show the offer or a save dialog again. It tells the sender how much it already has, so only the rest is sent. With the safety number on, the number is still compared first. The checksum covers the whole file, so if the rest doesn't belong with what already arrived, the check fails. A different offer starts from the beginning, and so does a shared secret. Only that tab can continue it, and the page discards it if the transfer ends some other way. When the tab closes or reloads, what was in memory is gone. What the browser then does with an unfinished file from the save dialog hasn't been tested yet.
Desktop Chromium browsers such as Chrome and Edge can write the file straight to a place on the disk the recipient chooses. Other browsers collect it in memory and start the download at the end, and for a file over 256 MiB the recipient is warned first. The download is always marked as plain binary data, whatever type the sender claims, so a file can't run as a web page on Fidant's site.
Names are refused if they contain control characters, line separators, Unicode direction controls, blank filler characters or long runs of spaces. So a name ending in .exe can't be made to look like one ending in .pdf.