How to restore version or trashed files with Nextcloud

150
February 03, 2021, at 03:40 AM

I'm currently developing a Nextcloud app and I need to restore an old version of a file in my code. I know how to get a file or folder with the OCP public API but didn't find any tips to restore a version ?

In the WebDav part of the documentation, they said to move the file version to the "restore folder" but there is no restore folder. https://docs.nextcloud.com/server/latest/developer_manual/client_apis/WebDAV/versions.html?highlight=version

But i didn't want to use webdav, i want to use the OCP API.

Thanks for your help, Donovan

READ ALSO
Docker, How to get a container IP inside another container in PHP?

Docker, How to get a container IP inside another container in PHP?

I'm tring to make a docker with mysql and apache php

132
How to post data to server using Retrofit2 [closed]

How to post data to server using Retrofit2 [closed]

Want to improve this question? Update the question so it focuses on one problem only by editing this post

124
How to assign the functionalities of an existing button to a new button?

How to assign the functionalities of an existing button to a new button?

I am writing a Javascript pluggin where I am trying to get all the methods of an existing button on a website and assign it to a button I created myself and delete/hide the old button, so that the Website still works as expected, but with a new button-layout

115