file,h,err:=c.Ctx.Request.FormFile("imgaaa")
if err != nil {
fmt.Println("获取上传文件失败")
return 
}
defer file.Close()
f, err := os.OpenFile("vvwd/"+h.Filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0666)
if err != nil {
fmt.Println("创建文件失败")
}
defer f.Close()
io.Copy(f, file)

c.TplName = "index.html"