From 379822dca4b7b5587540c98662b1379ddcec38c4 Mon Sep 17 00:00:00 2001 From: Kakune55 Date: Mon, 18 Dec 2023 16:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=A8=A1=E6=9D=BF=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/{upload.gtpl => upload.html} | 0 main.go | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename Web/{upload.gtpl => upload.html} (100%) diff --git a/Web/upload.gtpl b/Web/upload.html similarity index 100% rename from Web/upload.gtpl rename to Web/upload.html diff --git a/main.go b/main.go index f6cd9b3..1ff34dd 100644 --- a/main.go +++ b/main.go @@ -32,7 +32,7 @@ func upload(w http.ResponseWriter, r *http.Request) { io.WriteString(h, strconv.FormatInt(crutime, 10)) token := fmt.Sprintf("%x", h.Sum(nil)) - t, _ := template.ParseFiles("Web/upload.gtpl") + t, _ := template.ParseFiles("Web/upload.html") t.Execute(w, token) } else { //后端POST接收逻辑 r.ParseMultipartForm(32 << 20)