angular file uploader methods for http request

I’m trying to use angular-file-uploader and upload a file.
in afuConfig, I want to set method to POST but in terminal I have errors.

uploadAPI:  {
      headers: {
     "Content-Type" : "text/plain;charset=UTF-8",

it gives me this:

  The types of 'uploadAPI.responseType' are incompatible between these types.
    Type 'string' is not assignable to type '"blob" | "json" | "arraybuffer" | "text" | undefined'.

I have the same problem for using responseType too.

Source: JavaSript – Stack Overflow

November 23, 2021
Category : News
Tags: angular | file-upload | javascript

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.