POST api/2.0/files/{folderId}/upload
Uploads a file specified in the request to the selected folder by single file uploading or standart multipart/form-data method.
Name |
Description |
Type |
Example |
folderId
sent in url
|
Folder ID
|
string
|
some text
|
Upload can be done in 2 different ways:
- Using single file upload. You should set the Content-Type & Content-Disposition headers to specify the file name and content type, and send the file to the 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