更改模板文件

This commit is contained in:
Kakune55 2023-12-18 16:54:03 +08:00
parent 46a546c631
commit 379822dca4
2 changed files with 1 additions and 1 deletions

View File

@ -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)