fix the upload_file bug