upload file bug fix