title: How to obtain server response from AngularJS controller - flow.js
body: <p>I am calling an API and posting an image to server using flow.js.
  I am making this call from AngularJS controller:</p>
  
  <pre><code>    &lt;div flow-init flow-file-added="!!{png:1,gif:1,jpg:1,jpeg:1}[$file.getExtension()]"&gt;
           &lt;button ng-click="sender($flow)"&gt;send Image&lt;/button&gt;
      &lt;/div&gt;
  
  
      $scope.sendImage=function(flow)
      {
          flow.upload();
  
      }
  </code></pre>
  
  <p>The image is successfully received by the server, however I have searched on the internet about how to obtain the server response within the <code>sendImage</code> function
  but I couldn't find anything about it.</p>