flutter_inappwebview
flutter_inappwebview copied to clipboard
Fix RangeError: Maximum call stack size exceeded
When using shouldInterceptFetchRequest
or shouldInterceptAjaxRequest
upload file (500Kb jpg file in my case), it will be throw an error with "Fix RangeError: Maximum call stack size exceeded"
Same problem
Maybe we can add some condition to skip this, like use key words from request headers Content-Type: multipart/form-data
Usually when i use shouldInterceptFetchRequest
, i won't modify form-data
.
var bodyString = window.flutter_inappwebview._Util.arrayBufferToString(result.body);
If skipped, it becomes "unexpected" intercept :)
Thanks! I just replaced the arrow function implementation with a normal js function to maintain browser compatibility. @all-contributors please add @liasica for code.