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

Description

Uploads a file specified in the request to the selected folder by single file uploading or standart multipart/form-data method.

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

You can upload files in two different ways:

  1. Using single file upload. You should set the Content-Type and Content-Disposition headers to specify a file name and content type, and send the file to the request body.
  2. Using standart multipart/form-data method.

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

Uploaded file(s)