lalaviiie

Results comments of lalaviiie

Hi, i face this issue, @Izudinalqasam did you solve it?

i am trying to upload images using dio FormData, the request body containing two parts: -images: array of images -element: element information (json) when i log my FormData the data...

@Izudinalqasam can you share your code please? with http package

i used MultipartFile.fromFile and i got Unsupported Media Type.. he use the default content type application/octet-stream

Future createElement(element element, List images) async { FormData formData = FormData(); if (images != null) { for (File item in images) formData.files.addAll([ MapEntry( "images", await MultipartFile.fromFile(item.path, filename: item.path.split('/').last)), ]); }...