Modified do_upload() to use UPLOAD_ERR constants.

Modified switchcase in the do_upload() use the UPLOAD_ERR_* constants,
instead of just using an integer, and then commenting out the constant
beside it.