Update upload.php

Small bug.