mirror of
https://github.com/Kakune55/Pixel.git
synced 2025-05-06 18:29:25 +08:00
更改模板文件
This commit is contained in:
parent
46a546c631
commit
379822dca4
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user