我试图使用角-文件上传和上传文件。 在afuConfig,我想集方法以 后 但在终端我有错误。
uploadAPI: {
url:"https://example-file-upload-api",
method:"POST",
headers: {
"Content-Type" : "text/plain;charset=UTF-8",
},
}
它给我这样的:
The types of 'uploadAPI.responseType' are incompatible between these types.
Type 'string' is not assignable to type '"blob" | "json" | "arraybuffer" | "text" | undefined'.
我有同样的问题对于使用responseType。