File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ Contents:
2020 errors
2121 options
2222 dates
23+ upload
2324 tutorial
2425 tenders
2526 procuring
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Uploading documentation
2929~~~~~~~~~~~~~~~~~~~~~~~
3030
3131All tender documentation should be uploaded following requests one request
32- per document. You can see supported request types in Documents Uploading section.
32+ per document. You can see supported request types in :ref: ` upload ` section.
3333
3434.. sourcecode :: http
3535
@@ -69,7 +69,7 @@ Changing existing documents
6969~~~~~~~~~~~~~~~~~~~~~~~~~~~
7070
7171Procuring Entity can upload new versions of the tender documentation. You
72- can see supported request types in Documents Uploading section.
72+ can see supported request types in :ref: ` upload ` section.
7373
7474.. sourcecode :: http
7575
Original file line number Diff line number Diff line change 1+ .. _upload :
2+
3+ Documents Uploading
4+ ===================
5+
6+ All of the document uploading API endpoints follows the same set of rules.
7+
8+ Content-Type: multipart/formdata
9+ --------------------------------
10+
11+ This is normal approach of file uploading defined by `RFC 1867
12+ <http://www.faqs.org/rfcs/rfc1867.html> `_. The requirements are:
13+
14+ * Form element should have name `file `
15+ * Only one document can be uploaded.
16+
17+ The cURL example::
18+
19+ curl --form file=@page.pdf http://api-sandbox.openprocurement.org/api/0/tenders/f6882fa63d5141bcabec54a4766eec61/documents
20+
21+ HTTPie example::
22+
23+ http -f POST http://api-sandbox.openprocurement.org/api/0/tenders/f6882fa63d5141bcabec54a4766eec61/documents file@page.pdf
24+
You can’t perform that action at this time.
0 commit comments