3
如何上传文件使用反应本地的提取API 需要实现类似的东西到这个 -上传图像反应母语
------WebKitFormBoundaryRAxza9ew2ADaYHn5
Content-Disposition: form-data; name="file"; filename="66154520.jpg"
Content-Type: image/jpeg
------WebKitFormBoundaryRAxza9ew2ADaYHn5--
http://stackoverflow.com/questions/32441963/how-to-use-formdata-in-react-native的可能重复。 –
我们使用base64从设备上传图像到服务器。这样我们发送的数据总是相同的类型 - 不需要为每个不同的格式图像(jpg,png,bmp等)定义不同的类型。我们从来没有任何问题,在服务器上只是从base64转换回来。 –