Someone asked for a proper diff of my changes to upload.php in |WordPress|, so here it is: