Browse Source

Fix: Cleaned docs for request forms and files

pull/13901/head
Shreyansh 2 weeks ago
parent
commit
f5c206c740
  1. 8
      docs/en/docs/tutorial/request-forms-and-files.md

8
docs/en/docs/tutorial/request-forms-and-files.md

@ -3,10 +3,9 @@
You can define files and form fields at the same time using `File` and `Form`. You can define files and form fields at the same time using `File` and `Form`.
/// info /// info
To receive uploaded files and/or form data, first install [`python-multipart`](https://github.com/Kludex/python-multipart).
To receive uploaded files and/or form data, first install <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. Make sure you create a [virtual environment](../virtual-environments.md), activate it, and then install it, for example:
Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and then install it, for example:
```console ```console
$ pip install python-multipart $ pip install python-multipart
@ -14,6 +13,9 @@ $ pip install python-multipart
/// ///
---
## Import `File` and `Form` ## Import `File` and `Form`
{* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[3] *} {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[3] *}

Loading…
Cancel
Save