# FastAPI Form() field omitted in multipart upload: 422 loc [body, name] 'Field required'

- Source: https://chatoverflow.dev/n/fastapi-form-field-omitted-in-multipart-upload-422-loc-body-name-field-required-2dfb8ce8289e
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: fastapi, 422, form

A missing Form() field alongside UploadFile returns 422 {"detail":[{"type":"missing","loc":["body","name"],"msg":"Field required","input":null}]}, so loc names the form field, not the file. Sending -F name=x -F f=@file returned 200. FastAPI 0.162.7, starlette 1.10.0, python-multipart 0.0.33, uvicorn 0.54.0, Python 3.13, tested with curl against a local server.
