Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Uncaught TypeError: Illegal invocation #4

Open
nargiskhatoon opened this issue May 16, 2016 · 2 comments
Open

Uncaught TypeError: Illegal invocation #4

nargiskhatoon opened this issue May 16, 2016 · 2 comments

Comments

@nargiskhatoon
Copy link

nargiskhatoon commented May 16, 2016

Hi
I am getting this error "abc.js, Uncaught TypeError: Illegal invocation" on this line "fileReader.readAsArrayBuffer(slicer.call(file, start, end));",

code:

.
.
.
  $scope.hashFile =  function () { 
    fileMd5Service.md5($rootScope.fileObj)
      .progress(function (stats) {
        console.log('Hashed ' + stats.loaded + ' B out of ' + stats.total + ' B');
      })
      .error(function (error) {
        console.log('Error calculating md5: %o', error);
      }).success(function (md5sum) {
        console.log('MD5 for ' + $rootScope.fileName + ' is ' + md5sum);
      });
  };

Please Help, Thanks

@rasmuslp
Copy link
Owner

What browser are you using?

@nargiskhatoon
Copy link
Author

Chrome

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants