[ad_1]
A number of Flutter iOS customers of my app have obtained the next error of their software whereas sending a multipart request for importing pictures:
SocketException: OS Error: Dangerous file descriptor, errno = 9, deal with = <back-end server area>, port = 64362
The code to ship the request
var request = http.MultipartRequest("POST", uri);
request.information.add(
await http.MultipartFile.fromPath(
"pictures",
imagePath,
filename: imageName,
),
);
request.headers.addAll({
"Content material-type": "multipart/form-data",
});
var response = await request.ship();
var response2 = await http.Response.fromStream(response);
[ad_2]
