Content-type boundary None when upload to API

I encountered an error when upload to my API. I test with postman and httpie it’s working, but when use base64 plugin I got error “Invalid boundary in multipart: None”. I already set “Content-Type: multipart/form-data” in ionic post header to my API but still got error.

http --verbose --form POST myapi.com/resources/ image@someimage.jpg name=Clark

Here’s the output from httpie

POST /api/v0/kajian/ HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 79578
Content-Type: multipart/form-data; boundary=3cad93334b304f30b555d85a0cbdb880
Host: myapi.com
User-Agent: HTTPie/0.9.9

I’m using native file picker and ionic native base64 from this tutorial

What I’ve done:

  1. Change Content-type header to multipart/form-data
  2. Did not set Content-type header
  3. Rewrite post endpoint to another language

But still failing.