POST api/2.0/files/file/{fileId}/edit_session
Creates a session to edit the existing file with multiple chunks (needed for WebDAV).
Name |
Description |
Type |
Example |
fileId
sent in body
|
File ID
|
`0
|
|
fileSize
sent in body
|
File size in bytes
|
number
|
1234
|
POST api/2.0/files/file/{fileid}/edit_session
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"fileId": null,
"fileSize": 1234
}
Information about created session which includes:
- id: unique ID of this upload session,
- created: UTC time when the session was created,
- expired: UTC time when the session will expire if no chunks are sent before that time,
- location: URL where you should send your next chunk,
- bytes_uploaded: number of bytes uploaded for the specific upload ID,
- bytes_total: total number of bytes which will be uploaded.