You can define files and form fields at the same time using `File` and `Form`.
/// 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 <ahref="https://github.com/Kludex/python-multipart"class="external-link"target="_blank">`python-multipart`</a>.
Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and then install it, for example:
Make sure you create a [virtual environment](../virtual-environments.md), activate it, and then install it, for example: