Get Started
Portal api methods
Help

POST api/2.0/files/{folderId}/upload This function requires authentication

Description

Uploads the file specified with single file upload or standart multipart/form-data method to the selected folder

Parameters
Name Description Type Example
folderId
sent in url
Folder ID to upload to string some text
Remark

Upload can be done in 2 different ways:

  1. Single file upload. You should set Content-Type & Content-Disposition header to specify filename and content type, and send file in request body
  2. Using standart multipart/form-data method

Example
POST api/2.0/files/some+text/upload
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

Uploaded file