Skip to content

Commit

Permalink
Doc BodyParser: Add multipart form info about the file data
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Jan 22, 2025
1 parent e04f815 commit 3729281
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/api/ctx.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,12 @@ It is important to specify the correct struct tag based on the content type to b
| `application/xml` | xml |
| `text/xml` | xml |

:::note

When handling `multipart/form-data`, only the form values can be directly assigned to the struct fields. Files included in the request are not automatically assigned to the struct. You must handle files separately using [`FormFile`](#FormFile) or other file-specific methods.

:::

```go title="Signature"
func (c *Ctx) BodyParser(out interface{}) error
```
Expand Down

0 comments on commit 3729281

Please sign in to comment.