Uploads a file specified in the request to the "Common" section by single file uploading or standart multipart/form-data method.
Name | Description | Type | Example |
File
sent in body
|
File | Microsoft.AspNetCore.Http.IFormFile | |
ContentType
sent in body
|
Content-Type header | System.Net.Mime.ContentType | |
ContentDisposition
sent in body
|
Content-Disposition header | System.Net.Mime.ContentDisposition | |
Files
sent in body
|
List of files when specified as multipart/form-data | System.Collections.Generic.IEnumerable{Microsoft.AspNetCore.Http.IFormFile} | |
CreateNewIfExist
sent in body
|
Specifies whether to create a new file if it already exists or not | System.Nullable{System.Boolean} | |
StoreOriginalFileFlag
sent in body
|
Specifies whether to upload documents in the original formats as well or not | System.Nullable{System.Boolean} | |
KeepConvertStatus
sent in body
|
Specifies whether to keep the file converting status or not | System.Boolean | |
Stream
sent in body
|
Request input stream | System.IO.Stream |
You can upload files in two different ways:
POST api/2.0/files/@common/upload Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "KeepConvertStatus": true, "Stream": "N/A" }
Uploaded file(s)