Skip to content

Multipart-Mixed MIME Message with axios #803

@sanphandinh

Description

@sanphandinh

I need call POST REQUEST with content type: multipart-Mixed; boundary=XXX.
Body Request sample:

--XXX
Content-Type:application/http
Content-Id:ID000001

PATCH /drive/v1/files/56c5f29275d00204?uid=1nofz3czvb&access_token=aUVW5SkwPFkLlA2&device_id=device1&cid=U8W1YDSu2y
Content-Type:application/json; charset=UTF-8
x-sc-appid:tj9u972o46
Accepts:application/json

{"parent":"56c5f28d6d900203"}

--XXX--

I added string to data properity in config of AXIOS, but response from server cannot get data: "Request body 'part' - invalid"?
How to implement POST method with content type: multipart-mixed; boundary=xxx and bodyRequest is raw string???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions