Commit 1320bcf0 authored by Steven Allen's avatar Steven Allen

doc: fix formdata documentation

parent cf845608
...@@ -26,14 +26,14 @@ type MultiFileReader struct { ...@@ -26,14 +26,14 @@ type MultiFileReader struct {
closed bool closed bool
mutex *sync.Mutex mutex *sync.Mutex
// if true, the data will be type 'multipart/form-data' // if true, the content disposition will be "form-data"
// if false, the data will be type 'multipart/mixed' // if false, the content disposition will be "attachment"
form bool form bool
} }
// NewMultiFileReader constructs a MultiFileReader. `file` can be any `commands.Directory`. // NewMultiFileReader constructs a MultiFileReader. `file` can be any `commands.Directory`.
// If `form` is set to true, the multipart data will have a Content-Type of 'multipart/form-data', // If `form` is set to true, the Content-Disposition will be "form-data".
// if `form` is false, the Content-Type will be 'multipart/mixed'. // Otherwise, it will be "attachment".
func NewMultiFileReader(file Directory, form bool) *MultiFileReader { func NewMultiFileReader(file Directory, form bool) *MultiFileReader {
it := file.Entries() it := file.Entries()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment