MCPcopy
hub / github.com/gofiber/fiber / FormFile

Method FormFile

req.go:358–363  ·  view source on GitHub ↗

FormFile returns the first file by key from a MultipartForm. The multipart form is parsed using the application's BodyLimit to prevent unbounded memory usage.

(key string)

Source from the content-addressed store, hash-verified

356// The multipart form is parsed using the application's BodyLimit to prevent
357// unbounded memory usage.
358func (r *DefaultReq) FormFile(key string) (*multipart.FileHeader, error) {
359 if _, err := r.MultipartForm(); err != nil {
360 return nil, err
361 }
362 return r.c.fasthttp.FormFile(key)
363}
364
365// FormValue returns the first value by key from a MultipartForm.
366// Search is performed in QueryArgs, PostArgs, MultipartForm and FormFile in this particular order.

Callers

nothing calls this directly

Calls 2

MultipartFormMethod · 0.95
FormFileMethod · 0.65

Tested by

no test coverage detected