title: To save file in specific folder in angular.js
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>if (exportdata != null) {
    var blob = new Blob([s2ab(exportdata.filedata)], {
      type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
    });
    //saveAs provided by FileSaver.js
    saveAs(blob, exportdata.filename);
    framework.displayAlert('ERRORS.SUCCESS', 'Data downloaded successfully');
  } else {
    framework.displayAlert('ERRORS.ERROR', data.error);
  }
  
  
  function s2ab(s) {
    var buf = new ArrayBuffer(s.length);
    var view = new Uint8Array(buf);
    for (var i = 0; i != s.length; ++i) view[i] = s.charCodeAt(i) &amp; 0xFF;
    return buf;
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>In <code>saveAs()</code> I have given the file type and filename. It will save with the given file name in the downloads folder. But I want to save it in <code>D://Reports/sample/</code> this path. Is there any options to achieve this?</p>