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

前端 未结 5 2018
清歌不尽
清歌不尽 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:42

    In my case, there was a mistake in the list of the parameters was not well formed. So make sure the parameters are well formed. For e.g. correct format of parameters

    data: {'reporter': reporter,'partner': partner,'product': product}
    

提交回复
热议问题