flutter dio how to upload multiple files ,only keep one when upload multiple files?
高端VPN,微科 VPN 专线VPN,独立IP TikTok梯子,独享60元/月包年高速直连, 流畅播放Youtube 8K 视频不满意随时退款, QQ 2553878266
flutter dio how to upload multiple files ,only keep one when upload multiple files?
we can get the answer from
it seems work ok before ,but when i upload multiple files ,it can only keep the last one,
finally i get the answer, rename the MapEntry name to array,it is ok now
var formData = FormData();
for (var file in filepath) {
formData.files.addAll([
MapEntry("assignment[]", await MultipartFile.fromFile(file)),
]);
}
评论
登陆评论
没有评论