Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending multipart form data #44

Open
olymk2 opened this issue Mar 15, 2019 · 0 comments
Open

Sending multipart form data #44

olymk2 opened this issue Mar 15, 2019 · 0 comments

Comments

@olymk2
Copy link

olymk2 commented Mar 15, 2019

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--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant