Update upload.php

fixed a couple items