"Files are empty" 400 error on upload (Python)

I used files={‘file’: filename.stl}
It should be files={'files’: filename.stl}

For reference, the code below allowed me to upload a binary file to Strapi Uploads using the Python requests library.

url = f"{strapi_server_url}/api/upload"
headers = {
    'Authorization': f"Bearer {jwt}",
}
filename = "filename.stl"
file={'files': open(Path(os.getcwd(), filename), 'rb')}
payload={'submit': "Submit"}
response = requests.post(url, files=file, data=payload, headers=headers)