帮忙看看,我这个怎么读不出来文件?

import requests

def uploadData():
data = {“credentialType”: “1”,
“realName”: “121323”,
“nationality”: “阿布哈兹”,
“idCard”: “46464646”,
“files”: {“file”: (“test001.jpg”, open(“D:/tupian/test001.jpg”, “rb”))}

        }
return data

def test_wenjian():
r = requests.post(
url=‘http://mone-h5.dev.hypercode.me/api/authentication/user’,
data=uploadData(),
headers={‘Conteny-Type’: ‘multipart/form-data’,“client”:“android”,“Authorization”:“5951b5c3cfd44af19d28cfe7896c8294”},
)
print(r.json())
print(r.text)

报错信息:
{
“timestamp” : “1624716624293”,
“status” : “500”,
“error” : “Internal Server Error”,
“message” : “Request processing failed; nested exception is org.springframework.web.multipart.MultipartException: Current request is not a multipart request”,
“path” : “/authentication/user”
}

上传文件应该指定文件类型,file=uploadData()试试

助教老师给力, files = [
(‘files’, (‘3.jpg’, open(‘3.jpg’, ‘rb’), ‘image/jpeg’))
]