This commit is contained in:
deepzz0
2016-10-21 00:49:36 +08:00
parent 773378682b
commit 3ace117d0a
7 changed files with 142 additions and 58 deletions

12
api.go
View File

@@ -393,6 +393,18 @@ func apiTrashRecover(c *gin.Context) {
func apiFileUpload(c *gin.Context) {
// file, header , err := c.Request.FormFile("upload")
// filename := header.Filename
// fmt.Println(header.Filename)
// out, err := os.Create("./tmp/"+filename+".png")
// if err != nil {
// log.Fatal(err)
// }
// defer out.Close()
// _, err = io.Copy(out, file)
// if err != nil {
// log.Fatal(err)
// }
}
func responseNotice(c *gin.Context, typ, content, hl string) {