Fixed upload file undefined issue

Fixed upload file undefined issue