Flutter :- HTTP File Post Example: Image
问题 Future userPasswordUpdate() async { String passwordU = password.text; String confirmPasswordU = confirmPassword.text; String oldPasswordU = oldPassword.text; var url = 'url'; var response = await http.put(url, headers: { 'Accept': 'application/json' }, body: { "password": passwordU, "confirmPass": confirmPasswordU, "oldpassword": oldPasswordU, } ); I want to post image file to server with this method. But I Don't Know How. Can Anyone Help Me ? 回答1: For the image upload you can also use the