rem: var button = input.id.substr(5); 
add:  var button = input.name.substr(5, input.name.length - 6).replace('][', '-'); 
context: function uploadAutoAttach() {  var acdb = [];  var inputs = document.getElementsByTagName('input');  for (i = 0; input = inputs[i]; i++) {    if (input && hasClass(input, 'upload')) {      var uri = input.value;      var button = input.id.substr(5);      var wrapper = button + '-wrapper';      var hide = button + '-hide';      var upload = new jsUpload(uri, button, wrapper, hide);    }  }}
meta: 3650	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/f7042c955c6b2945e15e3952d6df3d5bdd2b82b8/upload.js/clean/misc/upload.js