Skip to content

Commit

Permalink
Example multiple files and some meta #269
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik authored Sep 8, 2023
1 parent b632bb9 commit 72468a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/docs/guides/input/file-params.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,12 @@ this will expect from client side to send data as multipart/form-data with 2 fie

- details: Json as string
- file: file


### List of files with extra info

```Python
@api.post('/user')
def create_user(request, details: UserDetails = Form(...), files: list[UploadedFile] = File(...)):
return [details.dict(), [f.name for f in files]]
```

0 comments on commit 72468a2

Please sign in to comment.