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)