What is checked when I upload a file?
In this order: that the bytes arrived, that they have the declared size, that they have the declared SHA-256 when one was declared, that the content is an accepted type, that it is the type the name claims, that an image, PDF or video opens within its limits, and that the scan finds no malware.
More: Uploading, Verification