'append' called on an object that does not implement interface FormData

前端 未结 5 1736
误落风尘
误落风尘 2020-12-02 09:57

I\'m Trying to upload image on with jquery and ajax. But weird thing happened here. In console Log its showing

TypeError: \'append\' called on an obj

5条回答
  •  [愿得一人]
    2020-12-02 10:07

    Add these two parameters in your AJAX to solve your problem:

    processData: false,
    contentType: false,
    

提交回复
热议问题