How create a folder / file in Nextcloud with PHP?


For a project, we have need to create a file in a folder of Nextcloud with a button in own app.
This file must access by Nextcloud website.

But I don’t find a documentation about that ? Do you have a solution about this ?

Same. The only thing i have found out is the link to this:

I have followed the procedure based on the tutorial app but i can’t understand when i’m creating a new Apicontroller and call on the AuthorStorage like it should be Php tells me this error
{“Exception”:“OCP\AppFramework\QueryException”,“Message”:"Could not resolve dataStorage!)

dataStorage is the private variable that then gets assigned to AuthorStorage

I think you should take a look at the API