Source File
formdata.go
Belonging Package
mime/multipart
package multipart
import (
)
var ErrMessageTooLarge = errors.New("multipart: message too large")
, := os.CreateTemp("", "multipart-")
if != nil {
return nil,
}
, := io.Copy(, io.MultiReader(&, ))
if := .Close(); == nil {
=
}
if != nil {
os.Remove(.Name())
return nil,
}
.tmpfile = .Name()
.Size =
} else {
.content = .Bytes()
.Size = int64(len(.content))
-=
-=
}
.File[] = append(.File[], )
}
return , nil
}
type sectionReadCloser struct {
*io.SectionReader
}
func ( sectionReadCloser) () error {
return nil
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |