Bulk download files in folder
mmasquelin opened this issue · 0 comments
It seems that the function that allows to mass download files from a folder can't work anymore because of API changes in OnlyOffice DocumentServer-CE (v12) : downloaded files doesn't match with content expected !
The following snippet could help to solve the problem : https://gist.github.com/mmasquelin/71ab89e7e46fab6af12618af5f6e679d. The python package has to be updated to fix the problem.
The following REST method is now available : https://api.onlyoffice.com/portals/method/files/get/api/2.0/files/file/%7bfileid%7d/presigneduri. It returns an URL based on the given fileID.
Improvements made in the OnlyOffice portal API also helps to complete the task in the todo list about the missing content-types :
[https://github.com/casiez/onlyoffice/blob/1954e5f5918f5dce07c731dbba66d7dc6091411b/onlyoffice/OnlyOffice.py#L72](
onlyoffice/onlyoffice/OnlyOffice.py
Line 72 in 1954e5f