Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-files
Commits
1320bcf0
Commit
1320bcf0
authored
Aug 09, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: fix formdata documentation
parent
cf845608
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
multifilereader.go
multifilereader.go
+4
-4
No files found.
multifilereader.go
View file @
1320bcf0
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment