0
Fixed

Improvement of open with only office

Gerald F 6 years ago updated by Vlad R 6 years ago 2

OnlyOffice use a documentKey to identity file and make cache

If a user do this actions

- edit a file with onlyoffice (version 1)

- download file on it's computer

- edit the file with ms word (version 2)

- upload file on filerun

- edit again the file with onlyoffice

The new version (2) of the file is not taken into account because the file name is identical and onlyoffice uses its cache.


Actually on filerun the key is generated with this command

$documentKey = substr($fileSize.md5($this->data['filePath']), 0, 20);


I suggets to use

$documentKey = substr($fileSize.md5($this->data['filePath']), 0, 12).substr($fileTime,2,10);

to have a new identifier in case of modification of the file by another editor


Moreover, despite the possibility of opening a file with onlyoffice in a new window, it is not possible to open two files at the same time because the opening URL is identical.

I suggest that URL of open with onlyoffice contain documentKey for resolve this problem.


This improvement should also allow to be able to edit a file with onlyoffice in the case of a weblink for users who do not have an account (in the way of google doc).


Thank you.


Gérald





Started

Thank you for the reported problem and solution. The change will be included with the upcoming software update.


Moreover, despite the possibility of opening a file with onlyoffice in a new window, it is not possible to open two files at the same time because the opening URL is identical.

The documents are loaded from FileRun using different URLs, so I am not sure I understand what you mean.