Get Started
Portal api methods
Help

POST api/2.0/files/@common/upload This function requires authentication

Description

Uploads the file specified with single file upload or standart multipart/form-data method to 'Common Documents' section

Parameters

This method doesn't have any parameters

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/@common/upload
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

Uploaded file