Learn the basics of making POST calls and working with multipart form data.
- The standard library has much of what you need to build services and apps.
- The
net/httppackage provides the building blocks. - There are other great packages in the Go ecosystem to help.
https://golang.org/pkg/net/http/
https://golang.org/doc/articles/wiki/
Basic POST: Code | Test
Simple Form: Code | Test
Structured Form Parsing: Code | Test
Multipart Forms: Code | Test
Take the multipart writer example and add support for a new form field that would specify the name of the folder to use for the uploaded image. If it does not exist use the current directory as the default. Then update the test to validate the code change.
All material is licensed under the Apache License Version 2.0, January 2004.