Skip to content

Commit

Permalink
Merge pull request ipfs/go-ipfs-files#19 from ipfs/fix/doc-nit
Browse files Browse the repository at this point in the history
doc: fix formdata documentation

This commit was moved from ipfs/go-ipfs-files@9001b6e
  • Loading branch information
Stebalien authored Aug 9, 2019
2 parents 357442b + 4b06448 commit 9cdf6a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions files/multifilereader.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ type MultiFileReader struct {
closed bool
mutex *sync.Mutex

// if true, the data will be type 'multipart/form-data'
// if false, the data will be type 'multipart/mixed'
// if true, the content disposition will be "form-data"
// if false, the content disposition will be "attachment"
form bool
}

// 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 false, the Content-Type will be 'multipart/mixed'.
// If `form` is set to true, the Content-Disposition will be "form-data".
// Otherwise, it will be "attachment".
func NewMultiFileReader(file Directory, form bool) *MultiFileReader {
it := file.Entries()

Expand Down

0 comments on commit 9cdf6a4

Please sign in to comment.