Get Started
Usage API
More information

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

Description

Uploads a file specified in the request to the "My documents" section by single file uploading or standart multipart/form-data method.

Parameters

This method doesn't have any parameters.

Remark

Upload can be done in 2 different ways:

  1. 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.
  2. Using standart multipart/form-data method.

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

Uploaded file