title: How to upload a file in data table using angular
body: <p>I have a grid with multiple columns, I am given the option to download the file (data in the table) same like I want to upload data to the data table, so here I want to give the option <code>import(upload file)</code>, how to upload a file in data table I am not getting any idea can any help me, here is my code.</p>
  <p><strong>component.ts</strong></p>
  <pre><code>this.dtOptions = {
    pagingType: 'full_numbers',
    columnDefs: [{
      targets: [6],
      orderable: false,
    }],
    dom: 'Blfrtip',
    buttons: [
      {
        text: this.translate.instant('COMMON.EXPORT_DATA_BUTTON'),
        key: '1',
        action: function (e, dt, node, config) {
          $this.exportData();
        }
      },
      {
        text: this.translate.instant('COMMON.IMPORT_DATA_BUTTON'),
        key: '1',
        action: function (e, dt, node, config) {
          $this.importData();
        }
      }
    ]
  };
  </code></pre>
  <p>in <code>importData()</code> method I have to do the file upload</p>