Nativescript: [HttpClient] Provide support for form-data with HttpClient

Created on 29 Aug 2019  路  3Comments  路  Source: NativeScript/NativeScript

Is your feature request related to a problem? Please describe.
Related to:
https://discourse.nativescript.org/t/cannot-submit-formdata/5360

https://github.com/NativeScript/NativeScript/issues/59

https://stackoverflow.com/questions/53399411/nativescript-post-request-using-body-form-data

Describe the solution you'd like
Proper support for content of type multipart/form-data

Describe alternatives you've considered
Existing community plugin is providing this functionality for NativeScript Core via this plugin. We need similar functionality in the core Http module or at least for the Angular's HttpClient

feature http

Most helpful comment

@NickIliev the following pull request makes implementing this at the XHR level easier (just have to update the FormData polyfill to achieve this) https://github.com/NativeScript/NativeScript/pull/7707

All 3 comments

@NickIliev the following pull request makes implementing this at the XHR level easier (just have to update the FormData polyfill to achieve this) https://github.com/NativeScript/NativeScript/pull/7707

Is there any progress on this?

It would be nice to support this out of the box.

Was this page helpful?
0 / 5 - 0 ratings