fix upload file is incomplete