How to send multipart HTTP requests from browser with Dart
问题 I have to upload an image from browser to my RESTful web API, implemented using Python Eve. From documentation, It requires sending multipart/data-form request. (http://python-eve.org/features.html#file-storage). There is 'dart:http' library that could do. But, it requires 'dart:io', which is not available on browser. So, is there anyway I can send the request from browser? Thank you for any help. 回答1: You can just use something like this: FormData formData = new FormData(); formData.append(