Skip to content

Sending multipart form data #44

@olymk2

Description

@olymk2

I am trying to submit a multipart upload with the following body, however the webserver seems to receive no GET POST or FILES content is that actually supported or am I doing something wrong below.

POST http://localhost/api/upload/ HTTP/1.1
Authorization: token 9efb4ff4ea724264f42b2938e9a9115f27c9a82f
Accept: */*
Content-Type: multipart/form-data; boundary=testboundary

--testboundary
Content-Disposition: form-data; name="data"
{
  "data": "test",
  "organisation": "test",
  "email_address": "[email protected]",
  "contact_number": "01758000000",
  "last_name": "test",
  "first_name": "test"
}
--testboundary
Content-Disposition: form-data; name="file"; filename="test.txt"

test
--testboundary--

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions