由于jquery.fileupload-image.js:268
Uncaught TypeError: Cannot read property 'parseMetaData' of undefined
我包含以下文件:
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
这是我的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>
这是我的Angular:
$scope.options =
url: 'some.endpoint'
答案 0 :(得分:17)
我遇到了同样的错误。
文件Javascript-Load-Image / js / load-image.min.js的链接已在github上更改,并且知道:Javascript-Load-Image / js / load-image.all.min.js
通过改变它与我合作。 :)
托马
答案 1 :(得分:4)
我也有这个问题。请注意,load-image.all.min.js
需要包含jquery.fileupload-image.js
。
这就是问题所在。