0

I'm learning how to develop a website using go and I've decided to try Goji. Everything is working fine except when I'm trying to use CSRF (goji-csrf) on a file upload I keep getting Forbidden - CSRF token invalid but when I removed enctype="multipart/form-data" in the template the csrf middleware is working fine.

Thanks for the answer in advance guys.

ginad
  • 1,863
  • 2
  • 27
  • 42
  • I've merged in multipart form support to goji/csrf: https://github.com/goji/csrf/pull/4 (I'd missed this when merging in other commits from its sister-project, gorilla/csrf) – elithrar Nov 26 '15 at 21:51
  • Thanks for the hard work – ginad Dec 16 '15 at 03:07

0 Answers0