FormData formData = FormData.fromMap({ "name": "wendux", "age": 25, "file": await MultipartFile.fromFile("./text.txt",filename: "upload.txt"), "files": [ await MultipartFile.fromFile("./text1.txt", filename: "text1.txt"), await MultipartFile.fromFile("./text2.txt", filename: "text2.txt"), ] }); response = await dio.post("/info", data: formData); // var resJson = convert.jsonDecode(res); // 字符串反序列化为Map
部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!