NextCloud

Downloading files from nextcloud with python script with 2-factor authentication enabled

喜夏-厌秋 提交于 2020-08-26 05:49:32
问题 I set up a nextcloud instance and I would like to download files from there using a python script. My nextcloud instance enforces 2-factor authentication for all users and I want it to remain that way. My dream scenario would be to use the requests library, so following the docs here https://docs.nextcloud.com/server/15/developer_manual/client_apis/WebDAV/basic.html , I tried to do something like this: from requests.auth import HTTPBasicAuth r = requests.request( method='get', url='https:/

Downloading files from nextcloud with python script with 2-factor authentication enabled

人走茶凉 提交于 2020-08-26 05:47:48
问题 I set up a nextcloud instance and I would like to download files from there using a python script. My nextcloud instance enforces 2-factor authentication for all users and I want it to remain that way. My dream scenario would be to use the requests library, so following the docs here https://docs.nextcloud.com/server/15/developer_manual/client_apis/WebDAV/basic.html , I tried to do something like this: from requests.auth import HTTPBasicAuth r = requests.request( method='get', url='https:/

Cannot mount Config directory in Nextcloud Docker container

痴心易碎 提交于 2020-05-12 08:07:26
问题 I'm trying to create a custom Nextcloud config locally, then have the ability to mount it to the appropriate folder using volumes as defined here: https://github.com/nextcloud/docker#persistent-data. All the volume mounts work except for the config mount... Why is that being treated differently here? Steps to reproduce 0) Enter a new/emptry directory (containing no sub-directories or additional files). 1) Create a docker-compose.yml file containing only the below contents: version: "3.4"

Webdav with curl vs Javascript

拜拜、爱过 提交于 2020-04-30 08:48:43
问题 I try to access a Nextcloud server using Webdav. Using curl this works: curl -X PROPFIND -u user:pwd https://nextcloudserver.com/remote.php/dav/files/user Using Javascript this I get a 503 error const url = "https://nextcloudserver.com/remote.php/dav/files/user/" var xhr = new XMLHttpRequest(); xhr.open('PROPFIND', url, true); xhr.setRequestHeader("Authorization", "Basic " + btoa("username:pwd")); xhr.withCredentials=true; xhr.send(); Any idea? 回答1: this is working for me: const url = "https:

Webdav with curl vs Javascript

[亡魂溺海] 提交于 2020-04-30 08:48:36
问题 I try to access a Nextcloud server using Webdav. Using curl this works: curl -X PROPFIND -u user:pwd https://nextcloudserver.com/remote.php/dav/files/user Using Javascript this I get a 503 error const url = "https://nextcloudserver.com/remote.php/dav/files/user/" var xhr = new XMLHttpRequest(); xhr.open('PROPFIND', url, true); xhr.setRequestHeader("Authorization", "Basic " + btoa("username:pwd")); xhr.withCredentials=true; xhr.send(); Any idea? 回答1: this is working for me: const url = "https:

NextCloud file tagging through WebDAV script

时光怂恿深爱的人放手 提交于 2020-02-02 12:10:50
问题 I am using NextCloud 11 to store my personal files, and I use the simple curl script from the documentation in order to upload files to my NextCloud drive: curl -u user:pw -T test.pdf "http://localhost/nextcloud/remote.php/dav/files/user/test/test.pdf" Moreover, I would like to directly add some tags to the uploaded files. However, in the official documentation, they just show how files can be uploaded, deleted and moved through the WebDAV interface. Does anybody have a hint how I could tag a

NextCloud file tagging through WebDAV script

谁都会走 提交于 2020-02-02 12:08:28
问题 I am using NextCloud 11 to store my personal files, and I use the simple curl script from the documentation in order to upload files to my NextCloud drive: curl -u user:pw -T test.pdf "http://localhost/nextcloud/remote.php/dav/files/user/test/test.pdf" Moreover, I would like to directly add some tags to the uploaded files. However, in the official documentation, they just show how files can be uploaded, deleted and moved through the WebDAV interface. Does anybody have a hint how I could tag a