Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectFileType ¶
DetectFileType returns the MIME type of given file by reading the file header of the file that is located on disk.
func Upload ¶
func Upload(client *http.Client, url string, values map[string]io.Reader, header map[string]string) (*http.Response, error)
Upload takes an url and multiple reader, that are used to fill in a multipart form.
Heavily inspired by: https://stackoverflow.com/a/20397167/11155150 but with the standard http package, there are not many other ways to do that, so it doesn't really matter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.