Skip to content

Commit 1dce4a1

Browse files
committed
Doc BodyParser: Add multipart form info about the file data
1 parent 7c31a3c commit 1dce4a1

File tree

1 file changed

+6
-0
lines changed
  • versioned_docs/version-v2.x/api

1 file changed

+6
-0
lines changed

versioned_docs/version-v2.x/api/ctx.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,12 @@ It is important to specify the correct struct tag based on the content type to b
276276
| `application/xml` | xml |
277277
| `text/xml` | xml |
278278

279+
:::note
280+
281+
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.
282+
283+
:::
284+
279285
```go title="Signature"
280286
func (c *Ctx) BodyParser(out interface{}) error
281287
```

0 commit comments

Comments
 (0)