diff --git a/frontend/internal/handlers/tags.go b/frontend/internal/handlers/tags.go index 4469160..21a4a64 100644 --- a/frontend/internal/handlers/tags.go +++ b/frontend/internal/handlers/tags.go @@ -228,7 +228,9 @@ func (a *App) UploadPhoto(w http.ResponseWriter, r *http.Request) { } w.Header().Set("Content-Type", "text/html; charset=utf-8") - fmt.Fprintf(w, `
Uploaded photo

Photo uploaded ✓

`, photoURL) + // Update the main form's photo_url input so a subsequent Save keeps the photo, + // and show the thumbnail. htmx executes the inline script on swap. + fmt.Fprintf(w, `
Uploaded photo

Photo uploaded ✓

`, photoURL, photoURL) } // CloseTag lets an owner close (retire) their tag. Data is kept; the tag page