TypeError: Upload.upload is not a function
问题 I have this function, and it throw exception: $scope.uploadAvatar = function(avatar, user) { Upload.upload({ url: 'api/v1/user' + user.id + '/', avatar: avatar, method: 'put' }) }; TypeError: Upload.upload is not a function My scripts includes: <script src="/static/js/main.js"></script> <script src="/static/js/bootstrap.min.js"></script> <script src="/static/js/posts_controller.js"></script> <script src="/static/js/jquery.equalheights.min.js"></script> <script src="/static/js/video.js/video