From ed8676532126c3103a5e27e424ef5048cccffe20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Thu, 29 Jan 2026 12:08:32 +0100 Subject: [PATCH] Fix avatar upload path by adding a leading dot to the avatars directory --- go_cloud/internal/http/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go_cloud/internal/http/routes.go b/go_cloud/internal/http/routes.go index 406c73e..ffffedc 100644 --- a/go_cloud/internal/http/routes.go +++ b/go_cloud/internal/http/routes.go @@ -4038,7 +4038,7 @@ func uploadUserAvatarHandler(w http.ResponseWriter, r *http.Request, db *databas // Upload to Nextcloud client := storage.NewWebDAVClient(cfg) - avatarPath := fmt.Sprintf("avatars/%s", filename) + avatarPath := fmt.Sprintf(".avatars/%s", filename) err = client.Upload(r.Context(), avatarPath, bytes.NewReader(fileBytes), header.Size) if err != nil { errors.LogError(r, err, "Failed to upload avatar")