Add file viewer dispatch for handling multiple file types and extend download timeout

This commit is contained in:
Leon Bösche
2026-01-25 16:14:03 +01:00
parent d5aecdfba8
commit 9bc03f6db8
7 changed files with 222 additions and 81 deletions

View File

@@ -9,6 +9,7 @@ import (
"net/http"
"net/url"
"strings"
"time"
)
// CreateNextcloudUser creates a new Nextcloud user account via OCS API
@@ -71,6 +72,6 @@ func NewUserWebDAVClient(nextcloudBaseURL, username, password string) *WebDAVCli
user: username,
pass: password,
basePrefix: "/",
httpClient: &http.Client{},
httpClient: &http.Client{Timeout: 10 * time.Minute},
}
}