title: How to save created image to directory on server instead of downloading it on the client
body: <p>I found some plugin on internet which creates png image from HTML table. But this plugin downloads file through browser. I need to save that file on some directory on the server.</p>
  
  <p>This plugin I have found.
  <a href="http://w3lessons.info/export-html-table-to-excel-csv-json-pdf-png-using-jquery/" rel="nofollow noreferrer">Link for plugin download</a></p>
  
  <p>This is my html table code:</p>
  
  <pre><code>&lt;a href="#" onClick="doExport('#countries', {type: 'png'});"&gt; &lt;img src='icons/png.png' alt="PNG" style="width:24px"&gt; PNG&lt;/a&gt;
  
  &lt;table class="table table-striped table-bordered" id="countries"&gt;
        &lt;thead class="thead-dark"&gt;
          &lt;tr&gt;
            &lt;th scope="col"&gt;Number&lt;/th&gt;
            &lt;th scope="col"&gt;Full Name&lt;/th&gt;
            &lt;th scope="col"&gt;Working time&lt;/th&gt;
            &lt;th scope="col"&gt;Pause&lt;/th&gt;
          &lt;/tr&gt;
        &lt;/thead&gt;
        &lt;tbody&gt;
          &lt;tr&gt;
            &lt;th scope="row"&gt;1&lt;/th&gt;
            &lt;td&gt;Mark&lt;/td&gt;
            &lt;td&gt;07:00-17:00&lt;/td&gt;
            &lt;td&gt;30 min&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
            &lt;th scope="row"&gt;2&lt;/th&gt;
            &lt;td&gt;Jacob&lt;/td&gt;
            &lt;td&gt;07:00-17:00&lt;/td&gt;
            &lt;td&gt;30 min&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
            &lt;th scope="row"&gt;3&lt;/th&gt;
            &lt;td&gt;Larry&lt;/td&gt;
            &lt;td&gt;07:00-17:00&lt;/td&gt;
            &lt;td&gt;30 min&lt;/td&gt;
          &lt;/tr&gt;
        &lt;/tbody&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>This is js code:</p>
  
  <pre><code>function doExport(selector, params) {
        var options = {
          //ignoreRow: [1,11,12,-2],
          //ignoreColumn: [0,-1],
          //pdfmake: {enabled: true},
          tableName: 'Table name'
        };
  
        jQuery.extend(true, options, params);
  
        $(selector).tableExport(options);
      }
  </code></pre>
  
  <p>This is my project: <a href="https://gofile.io/?c=JRoL4e" rel="nofollow noreferrer">Link to download</a></p>
  
  <p>I have worked in file "test/test.html"</p>