Skip to content

Commit de7754b

Browse files
committed
Added example of multipart/form-data
1 parent 86cb1ce commit de7754b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/source/upload.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,14 @@ HTTPie example::
2222

2323
http -f POST http://api-sandbox.openprocurement.org/api/0/tenders/f6882fa63d5141bcabec54a4766eec61/documents file@page.pdf
2424

25+
The request itself should look like::
26+
27+
POST /api/0.2/tenders/f6882fa63d5141bcabec54a4766eec61/documents HTTP/1.1
28+
Content-Type: multipart/form-data; boundary=28e02f7d4a3c4da19c4e2589329ad36f
29+
Host: api-sandbox.openprocurement.org
30+
31+
--28e02f7d4a3c4da19c4e2589329ad36f
32+
Content-Disposition: form-data; name="file"; filename="page.pdf"
33+
34+
..Contents of PDF goes here...
35+
--28e02f7d4a3c4da19c4e2589329ad36f--

0 commit comments

Comments
 (0)