示例#1
0
文件: ctf.go 项目: Centny/jsupload
func RecF(hs *routing.HTTPSession) routing.HResult {
	_, sha, _, err := hs.RecF2("file", "/tmp/")
	if err == nil {
		fmt.Println("receive file:", sha)
		return hs.MsgRes(sha)
	} else {
		fmt.Println("receive file err:", err.Error())
		return hs.MsgResErr2(1, "arg-err", err)
	}
}