webdav: nextcloud chunking: add more guidance for the user to check the config

This commit is contained in:
darix 2023-07-10 15:37:09 +02:00 committed by GitHub
parent 07cf5f1d25
commit 415f4b2b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ func (o *Object) getChunksUploadDir() (string, error) {
func (f *Fs) getChunksUploadURL() (string, error) { func (f *Fs) getChunksUploadURL() (string, error) {
submatch := nextCloudURLRegex.FindStringSubmatch(f.endpointURL) submatch := nextCloudURLRegex.FindStringSubmatch(f.endpointURL)
if submatch == nil { if submatch == nil {
return "", errors.New("the remote url looks incorrect. Note that nextcloud chunked uploads require you to use the /dav/files/USER endpoint instead of /webdav") return "", errors.New("the remote url looks incorrect. Note that nextcloud chunked uploads require you to use the /dav/files/USER endpoint instead of /webdav. Please check 'rclone config show remotename' to verify that the url field ends in /dav/files/USERNAME")
} }
baseURL, user := submatch[1], submatch[2] baseURL, user := submatch[1], submatch[2]