Checked on arrival
The wrong file is bounced before anyone opens it.
Each upload is compared with the request: is this a bank statement or a card statement, which account, which period, is every page present and readable. A mismatch goes straight back to the client with a plain explanation they can act on.