Je suis en train d'utiliser angulaire de fichier à uploader et télécharger un fichier. dans afuConfig, je veux sélectionnez la méthode POST , mais dans le terminal j'ai des erreurs.
uploadAPI: {
url:"https://example-file-upload-api",
method:"POST",
headers: {
"Content-Type" : "text/plain;charset=UTF-8",
},
}
il me donne ceci:
The types of 'uploadAPI.responseType' are incompatible between these types.
Type 'string' is not assignable to type '"blob" | "json" | "arraybuffer" | "text" | undefined'.
J'ai le même problème pour l'utilisation de responseType trop.