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)
| 356 | // The multipart form is parsed using the application's BodyLimit to prevent |
| 357 | // unbounded memory usage. |
| 358 | func (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. |
nothing calls this directly
no test coverage detected