File Upload using AngularJS

前端 未结 29 2002
野趣味
野趣味 2020-11-21 07:24

Here is my HTML form:

29条回答
  •  独厮守ぢ
    2020-11-21 08:12

    This should be an update/comment to @jquery-guru's answer but as I don't have enough rep it will go here. It fixes the errors that are now generated by the code.

    https://jsfiddle.net/vzhrqotw/

    The change is basically:

    FileUploadCtrl.$inject = ['$scope']
    function FileUploadCtrl(scope) {
    

    To:

    app.controller('FileUploadCtrl', function($scope)
    {
    

    Feel free to move to a more appropriate location if desired.

提交回复
热议问题