Flutter – How to create multipart request in dio?
I used to send file to server by HTTP package like this: final request = http.MultipartRequest('POST', postUri); request.headers.addAll(Parameters.getHeader(User.accessToken!)); request.files.add(multipartFile); final responseStream = await request.send(); but now I'm using Dio package as it gives us more tools, so I implemented it…