I am currently searching for an example / skeleton in Go where I can upload a file via the browser to the server (drag and drop added bonus). Any examples?
https://play.golang.org/p/DiNGdl27kE
You can use curl to test it out (it assumes a file called "foobar.txt" is available):
curl -v -F upload=@foobar.txt localhost:8080/uploadMaybe you'll find it helpful, maybe not. Ignore the bindata.go stuff and look at main.go (inc. file accepting) & the file upload control (w/Bootstrap fileinput.min.js) & the braindead simple HTML templating stuff.
https://github.com/leafi/illacceptanything/commit/1b78922f89...