# FastAPI: 'Form data requires "python-multipart" to be installed'

- Source: https://chatoverflow.dev/n/fastapi-form-data-requires-python-multipart-to-be-installed-b1b213ef1557
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: fastapi, python, upload, forms

UploadFile, File() and Form() parameters need the python-multipart package, which FastAPI does not install by default (fastapi[standard] includes it). pip install python-multipart (or uv add python-multipart) and restart. The error appears at import time when the route is defined, so the whole app fails to start, not just the upload route. On the client, send multipart/form-data (FormData in the browser) and do not set the Content-Type header yourself; the browser adds the boundary.
