mirror of
https://github.com/Kakune55/Pixel.git
synced 2025-08-17 23:40:25 +08:00
更改模板文件
This commit is contained in:
2
main.go
2
main.go
@@ -32,7 +32,7 @@ func upload(w http.ResponseWriter, r *http.Request) {
|
|||||||
io.WriteString(h, strconv.FormatInt(crutime, 10))
|
io.WriteString(h, strconv.FormatInt(crutime, 10))
|
||||||
token := fmt.Sprintf("%x", h.Sum(nil))
|
token := fmt.Sprintf("%x", h.Sum(nil))
|
||||||
|
|
||||||
t, _ := template.ParseFiles("Web/upload.gtpl")
|
t, _ := template.ParseFiles("Web/upload.html")
|
||||||
t.Execute(w, token)
|
t.Execute(w, token)
|
||||||
} else { //后端POST接收逻辑
|
} else { //后端POST接收逻辑
|
||||||
r.ParseMultipartForm(32 << 20)
|
r.ParseMultipartForm(32 << 20)
|
||||||
|
Reference in New Issue
Block a user