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.
Merge pull request #2371 from thefuzzy0ne/fix/upload_err_constants

Modified do_upload() to use UPLOAD_ERR constants.