When is a replacement checked against the file's current version?
Twice. When the upload starts, and again when the checks have passed and the version is about to be added.
Twice. When the upload starts, and again when the checks have passed and the version is about to be added.