text: ﻿// Copyright © 2017 Dmitry Sikorsky. All rights reserved.
  // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
  
  function uploadFiles(inputId) {
      var input = document.getElementById(inputId);
      var files = input.files;
      var formData = new FormData();
  
      for (var i = 0; i != files.length; i++) {
          formData.append("files", files[i]);
      }
  
      $.ajax(
          {
              url: "/uploader",
              data: formData,
              processData: false,
              contentType: false,
              type: "POST",
              success: function (data) {
                  alert("Files Uploaded!");
              }
          }
      );
  }
  