title: .upload is not a function in ng-file-upload
body: <p>I am using <a href="https://github.com/danialfarid/ng-file-upload" rel="nofollow noreferrer">NG-FILE-UPLOAD</a> for file upload,preview and send to server.</p>
  
  <p>I have added the files upload.js and upload.shim.js is my files direcory.added them in project and also added dependency in my angular module.working same as <a href="http://plnkr.co/edit/YjAp96TrEnLJcCQaFLLp?p=preview" rel="nofollow noreferrer">this one</a>.</p>
  
  <p><strong>Html:</strong></p>
  
  <pre><code>      &lt;fieldset&gt;
    &lt;input type="file" ngf-select="" class="form-control" ng-model="picFile"
     name="file" accept="image/*" ngf-max-size="2MB" required="" /&gt;
    &lt;img ngf-thumbnail="picFile" class="thumb" width="300"/&gt;
    &lt;button ng-click="picFile = null" ng-show="picFile"&gt;Remove&lt;/button&gt;
    &lt;br /&gt;
    &lt;button ng-click="uploadPic(picFile)"&gt;Submit&lt;/button&gt;
    &lt;span class="progress" ng-show="picFile.progress &gt;= 0"&gt;
      &lt;div style="width:{{picFile.progress}}%" ng-bind="picFile.progress + '%'"&gt;&lt;/div&gt;
    &lt;/span&gt;
    &lt;span ng-show="picFile.result"&gt;Upload Successful&lt;/span&gt;
    &lt;span class="err" ng-show="errorMsg"&gt;{{errorMsg}}&lt;/span&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>  $scope.uploadPic = function(file) {
      Upload.upload({
          url: '/student/studentimages',
              data: {
              uploadedPicture: file,
              uploadedFrom: 'recipe'
          },
      }).then(function(response) {
          $timeout(function() {
              $scope.result = response.data;
          });
      }, function(response) {
          if (response.status &gt; 0) $scope.errorMsg = response.status + ': ' + response.data;
      }, function(evt) {
          $scope.progress = parseInt(100.0 * evt.loaded / evt.total);
      });
  
  }
  </code></pre>
  
  <p>But when i click submit it is giving me error as</p>
  
  <pre><code>Upload.upload is not a function
  at Scope.e.uploadPic (app.min.js:1)
  at fn (eval at compile (angular.js:13036), &lt;anonymous&gt;:4:296)
  at update (upload.js:533)
  at upload.js:611
  at angular.js:17571
  at completeOutstandingRequest (angular.js:5370)
  at angular.js:5642
  </code></pre>
  
  <p>I have tried changing version too. What else can be tried to solve this?</p>