text: /**
   * This source file is subject to the license that is bundled with this package in the file LICENSE.
   */
  (function ($) {
      // We can attach the `fileselect` event to all file inputs on the page
      $(document).on('change', ':file', function () {
          var input = $(this),
              numFiles = input.get(0).files ? input.get(0).files.length : 1,
              label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
          input.trigger('fileselect', [numFiles, label]);
      });
      // We can watch for our custom `fileselect` event like this
      $(':file').on('fileselect', function (event, numFiles, label) {
  
          var input = $(this).parents('.input-group').find(':text'),
              log = numFiles > 1 ? numFiles + ' files selected' : label;
  
          if (input.length) {
              input.val(log);
          }
      });
  })(jQuery);
  