MCPcopy
hub / github.com/labstack/echo / FormFile

Method FormFile

context.go:426–433  ·  view source on GitHub ↗

FormFile returns the multipart form file for the provided name.

(name string)

Source from the content-addressed store, hash-verified

424
425// FormFile returns the multipart form file for the provided name.
426func (c *Context) FormFile(name string) (*multipart.FileHeader, error) {
427 f, fh, err := c.request.FormFile(name)
428 if err != nil {
429 return nil, err
430 }
431 _ = f.Close()
432 return fh, nil
433}
434
435// MultipartForm returns the multipart form.
436func (c *Context) MultipartForm() (*multipart.Form, error) {

Callers 2

TestContextFormFileFunction · 0.95

Calls 1

CloseMethod · 0.45

Tested by 2

TestContextFormFileFunction · 0.76