Doc BodyParser: Add multipart form info about the file data

v2
René 2025-01-22 08:35:17 +01:00
parent e04f815c43
commit 3729281a1e
1 changed files with 6 additions and 0 deletions

View File

@ -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
```