News for hackers. Stuff that matters.
Re:Go Web Examples by Spiritus on Friday February 10, 2017 @07:09AM (#13614811)
Something like this will hopefully get the point across on how to handle "multipart/form-data" forms. It will print the content of the upload to the server's stdout.

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 [email protected] localhost:8080/upload

There are no comments on this comment yet.