Eu estou tentando usar angular-file uploader e fazer o upload de um arquivo. em afuConfig, eu quero definir o método para POSTAR , mas, no terminal de eu ter erros.
uploadAPI: {
url:"https://example-file-upload-api",
method:"POST",
headers: {
"Content-Type" : "text/plain;charset=UTF-8",
},
}
dá-me este:
The types of 'uploadAPI.responseType' are incompatible between these types.
Type 'string' is not assignable to type '"blob" | "json" | "arraybuffer" | "text" | undefined'.
Eu tenho o mesmo problema usando responseType também.