title: SyntaxError: missing : after property id angular js
body: <p>I'm trying to execute the following code, but it gives me this error:</p>
  
  <p><img src="https://i.stack.imgur.com/HqCMR.png" alt="enter image description here"></p>
  
  <pre><code>$http.post('/api/updatePhoto/'+$scope.item.id)
  
  $scope.onFileSelect = function($files) {
  
       for (var i = 0; i &lt; $files.length; i++) {
  
           var file = $files[i];
  
           $scope.upload = $upload.upload({
  
           $http.post('/api/updatePhoto/'+$scope.item.id) 
  
            data: {myObj: $scope.myModelObj},
            file: file,
        })
  
      }).success(function(data){
     alert(data);
  
    })
   }
  </code></pre>
  
  <p>What's wrong with the code?</p>