This commit is contained in:
cangui 2025-06-20 18:03:44 +02:00
parent 867f46c1fc
commit 89a37a1c7c

View File

@ -661,7 +661,7 @@ func StreamHandler(w http.ResponseWriter, r *http.Request) {
renderTemplate(w, "folders", data)
}
func DetailHandler(w http.ResponseWriter, r *http.Request) {
base := "static/uploads"
base := "/app/uploads"
rel := r.URL.Query().Get("path")
info, err := os.Stat(filepath.Join(base, rel))
if err != nil {