Angular and Bluimp jQuery-file-upload: parseMetaData error

I cannot upload files due to the following error in jquery.fileupload-image.js:268

Uncaught TypeError: Cannot read property 'parseMetaData' of undefined

I include the following files:

 ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.js ajax.googleapis.com/ajax/libs/angularjs/1.2.22/angular.js maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.js cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.iframe-transport.js cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.fileupload.js cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.fileupload-process.js cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.fileupload-image.js cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.fileupload-audio.js cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.fileupload-video.js cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.fileupload-validate.js cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.fileupload-angular.js 

Here is my HTML:

 <form data-file-upload="options"> <span class="btn btn-success fileinput-button"> <span>Add files...</span> <input type="file"> </span> <button type="button" class="btn btn-primary start" data-ng-click="submit()"> <span>Start upload</span> </button> </form> 

And here is my Angular:

 $scope.options = url: 'some.endpoint' 
+5
source share
2 answers

I had the same error.

The link to the Javascript-Load-Image / js / load-image.min.js file has changed to github and is known: Javascript-Load-Image / js / load-image.all.min.js

Changing this, I worked with me. :)

Thoma

+17
source

I also had this problem. Note that load-image.all.min.js must be enabled before jquery.fileupload-image.js .

That was the problem.

+4
source

Source: https://habr.com/ru/post/1202922/


All Articles