uploading file bug fix