MCPcopy
hub / github.com/gin-gonic/gin / MultipartForm

Method MultipartForm

context.go:713–716  ·  view source on GitHub ↗

MultipartForm is the parsed multipart form, including file uploads.

()

Source from the content-addressed store, hash-verified

711
712// MultipartForm is the parsed multipart form, including file uploads.
713func (c *Context) MultipartForm() (*multipart.Form, error) {
714 err := c.Request.ParseMultipartForm(c.engine.MaxMultipartMemory)
715 return c.Request.MultipartForm, err
716}
717
718// SaveUploadedFile uploads the form file to specific dst.
719func (c *Context) SaveUploadedFile(file *multipart.FileHeader, dst string, perm ...fs.FileMode) error {

Callers 1

TestContextMultipartFormFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestContextMultipartFormFunction · 0.64