beego檔案上傳使用getFile出錯

zhangyumingtfr發表於2016-12-20
2016/12/20 09:47:40 [D] [resourceController.go:118] <nil> <nil> multipart: NextPart: EOF
2016/12/20 09:47:40 [E] [resourceController.go:121] get the file is error: multipart: NextPart: EOF
2016/12/20 09:47:40 [C] [asm_amd64.s:479] the request url is  /hcloud/resource/upload
2016/12/20 09:47:40 [C] [asm_amd64.s:479] Handler crashed with error can't find templatefile in the path:resourcecontroller/uploadphoneresource.tpl
2016/12/20 09:47:40 [C] [asm_amd64.s:479] D:/GO/src/runtime/asm_amd64.s:479
2016/12/20 09:47:40 [C] [asm_amd64.s:479] D:/GO/src/runtime/panic.go:458
2016/12/20 09:47:40 [C] [asm_amd64.s:479] D:/GOPATH/src/github.com/astaxie/beego/template.go:64
2016/12/20 09:47:40 [C] [asm_amd64.s:479] D:/GOPATH/src/github.com/astaxie/beego/controller.go:249
2016/12/20 09:47:40 [C] [asm_amd64.s:479] D:/GOPATH/src/github.com/astaxie/beego/controller.go:200
2016/12/20 09:47:40 [C] [asm_amd64.s:479] D:/GOPATH/src/github.com/astaxie/beego/controller.go:184
2016/12/20 09:47:40 [C] [asm_amd64.s:479] D:/GOPATH/src/github.com/astaxie/beego/router.go:809
2016/12/20 09:47:40 [C] [asm_amd64.s:479] D:/GO/src/net/http/server.go:2178
2016/12/20 09:47:40 [C] [asm_amd64.s:479] D:/GO/src/net/http/server.go:1555
2016/12/20 09:47:40 [C] [asm_amd64.s:479] D:/GO/src/runtime/asm_amd64.s:2059

beego 使用 getFile 上傳檔案報錯 multipart: NextPart: EOF 但是小檔案上傳沒問題,大一點就會出錯比如 1 兆

更多原創文章乾貨分享,請關注公眾號
  • beego檔案上傳使用getFile出錯
  • 加微信實戰群請加微信(註明:實戰群):gocnio

相關文章