Estoy tratando de utilizar angular-archivo-cargador y cargar un archivo. en afuConfig, quiero establecer el método POST , pero en la terminal tengo errores.
uploadAPI: {
url:"https://example-file-upload-api",
method:"POST",
headers: {
"Content-Type" : "text/plain;charset=UTF-8",
},
}
me da esto:
The types of 'uploadAPI.responseType' are incompatible between these types.
Type 'string' is not assignable to type '"blob" | "json" | "arraybuffer" | "text" | undefined'.
Tengo el mismo problema para el uso de responseType demasiado.