1.

Uncaught TypeError: Illegal invocation

編集

エラー内容

Uncaught TypeError: Illegal invocation

 

発生条件/原因

ajaxでファイル送信しようとする際に発生するエラー。

 

対処法

ajaxのパラメータに以下の文言を追加して、ajaxによる送信データの成形を無効化する。

processData:false

 

編集
Post Share
子ページ

子ページはありません

同階層のページ
  1. Uncaught TypeError: Illegal invocation
  2. Form submission canceled because the form is not connected
  3. Uncaught TypeError: location.href is not a function
  4. Access to XMLHttpRequest at 'url1' from origin 'url2' has been blocked by CORS policy
  5. Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')