taggart

Simple golang tagging filesystem webapp
Log | Files | Refs

commit 5431d2945bed3352b2f80e1876e291760c5ba68a
parent 1b4b2152f8923fb1e1de57bb0ef5393f649b821d
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Mon, 29 Sep 2025 14:21:03 +0100

It'd help if I supplied the right path

Diffstat:
Mmain.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.go b/main.go @@ -504,8 +504,8 @@ func fileRenameHandler(w http.ResponseWriter, r *http.Request, parts []string) { } // Handle thumbnail if it exists - thumbOld := filepath.Join(config.UploadDir, currentFile.Filename+".jpg") - thumbNew := filepath.Join(config.UploadDir, newFilename+".jpg") + thumbOld := filepath.Join(config.UploadDir, "thumbnails", currentFile.Filename+".jpg") + thumbNew := filepath.Join(config.UploadDir, "thumbnails", newFilename+".jpg") if _, err := os.Stat(thumbOld); err == nil { // Thumbnail exists, rename it