validate uploaded file against all error codes