Inserts a file specified in the request to the selected folder by single file uploading.
Name | Description | Type | Example |
folderId
sent in body
|
Folder ID | number | 1234 |
File
sent in body
|
File | Microsoft.AspNetCore.Http.IFormFile | |
Title
sent in body
|
File name | System.String | |
CreateNewIfExist
sent in body
|
Specifies whether to create a new file if it already exists 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 |
POST api/2.0/files/{folderid}/insert Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "folderId": 1234, "Title": "some text", "KeepConvertStatus": true, "Stream": "N/A" }
Inserted file informationy
{ "status": 0, "response": { "FolderId": 1234, "Version": 1234, "VersionGroup": 1234, "ContentLength": "some text", "Mute": true, "ViewUrl": "some text", "WebUrl": "some text", "FileExst": "some text", "Comment": "some text", "ThumbnailUrl": "some text", "LockedBy": "some text", "DenyDownload": true, "DenySharing": true } }