POST api/2.0/files/{folderId}/upload
Uploads the file specified with single file upload or standart multipart/form-data method to the selected folder
Name |
Description |
Type |
Example |
folderId
sent in url
|
Folder ID to upload to
|
string
|
some text
|
Upload can be done in 2 different ways:
- Single file upload. You should set Content-Type & Content-Disposition header to specify filename and content type, and send file in request body
- Using standart multipart/form-data method
POST api/2.0/files/some+text/upload
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json