1. Describe the problem
requirements as above, and the backend interface needs my post format as follows:
{
"type": "***",
"list": [
{
"filename": "***",
"filedata": File
}
]
}
2. I have tried
I directly set content-type to application/x-www-form-urlencoded, but the data sent is not what the backend wants, so instead, multipart/form-data, finds that it can not correctly transmit data of type File
3. So when using axios, what should we do when we encounter this type of parameter passing?