Jquery and HTML FormData returns “Uncaught TypeError: Illegal invocation”

前端 未结 5 2025
清歌不尽
清歌不尽 2020-11-29 03:02

I\'m using this script to upload my image files: http://jsfiddle.net/eHmSr/

$(\'.uploader input:file\').on(\'change\', function() {
  $this = $(this);

  $(\         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 03:49

    i had same problem i fixed that with using two options

    contentType: false
    processData: false
    

    Actually I Added these two command to my $.ajax({}) function

提交回复
热议问题