how to upload a file anonymously to a folder created for anonymous uploading via the android API?
I can upload files via android API only with login/password
I asume you are referring to this: Making anonymous uploads — Nextcloud latest User Manual latest documentation
Anonymous Uploads, or “File Drop” as it is called in Nextcloud, is a folder that is shared via a link that allows other people to upload files to it without having to log in to the server.
You don’t need to have an account on this Nextcloud instance or use any app to upload anything. Just click on the link, which should open your default browser, then click on the upload button and select the files you want to upload: See here: Making anonymous uploads — Nextcloud latest User Manual latest documentation
no, I meant, how to implement what you write about through the android api?
android api nextcloud
Not possible afaik.
Maybe I was a bit too hasty with my answer and there might be a way to do it via API. I found the following thread, which doesn’t offer a quick solution, but may help point you in the right direction: https://help.nextcloud.com/t/uploading-a-file-to-file-drop-using-http-post-method/