CommunityServer icon indicating copy to clipboard operation
CommunityServer copied to clipboard

WOPI OR API retrieve certain version of a file

Open tbswork1 opened this issue 3 years ago • 8 comments

Do you want to request a feature or report a bug? A feature.

What is the expected behavior? OnlyOffice caches different versions of a file and provides the API GET api/2.0/files/file/{fileId} to get information of a give file. But there seems to be no API for getting the complete file of a version. Because of that we need to maintain all versions of a file on the storage server which OnlyOffice docs server already has.

DocumentServer version: 7.0.1

Operating System: Ubuntu 18.04

tbswork1 avatar Apr 13 '22 05:04 tbswork1

Storing file versions is outside of DocumentServer responsibilities and maintained by DMS

I'll transfer your issue to CommunityServer repo, since GET api/2.0/files/file/{fileId} this seems like CommunityServer request

ShockwaveNN avatar Apr 13 '22 10:04 ShockwaveNN

Hello @tbswork1 Please describe what you want in more detail. Maybe this method will help you.

Carazyda avatar Apr 14 '22 12:04 Carazyda

Hello @tbswork1 Please describe what you want in more detail. Maybe this method will help you.

This method returns meta data of a file version. What we need is to retrieve the physical copy of it.

tbswork1 avatar Apr 15 '22 03:04 tbswork1

You can download a specific version of file by this method. Will this suit you?

Carazyda avatar Apr 15 '22 14:04 Carazyda

I haven't tried that yet but it says 'Returns the initialization configuration to open the editor.' in json?

tbswork1 avatar Apr 17 '22 04:04 tbswork1

Yes, it returns a link to the file where it can be downloaded.

Carazyda avatar Apr 17 '22 11:04 Carazyda