HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: nexper (1054)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nexper/public_html/sites/all/modules/node_gallery/js/ng_plupload.js
(function($) {

  Drupal.behaviors.nodeGalleryPlupload = {
    attach: function (context, settings) {
      $(".plupload-element", context).once('ng_plupload-init', function () {
        $(this).pluploadQueue().bind('BeforeUpload', function(up, file) {
          // Remove any previous filename query strings and append the next one.
          up.settings.url = up.settings.url.replace(/([?&])filename=[^&]+/, '');
          up.settings.url += (up.settings.url.match(/[?]/) ? '&filename=' : '?filename=') + file.name;
      });
    });
  }
};

})(jQuery);