Snažím sa pomocou uhlovej-file-uploader a nahrať súbor. v afuConfig, chcem nastaviť metóda POST , ale v termináli som chyby.
uploadAPI: {
url:"https://example-file-upload-api",
method:"POST",
headers: {
"Content-Type" : "text/plain;charset=UTF-8",
},
}
dáva mi toto:
The types of 'uploadAPI.responseType' are incompatible between these types.
Type 'string' is not assignable to type '"blob" | "json" | "arraybuffer" | "text" | undefined'.
Mám rovnaký problém s použitím responseType príliš.