FastAPI Error

Error getting request body: 'utf-8' codec can't decode byte 0x89 in position 158: invalid start byte

To receive uploaded files, first install python-multipart.

E.g. pip install python-multipart.

This is because uploaded files are sent as “form data”.