Código Javascript:
Ver original
<script> function copiar(from,to){ document.getElementById(to).value = document.getElementById(from).value; } </script>
recojo las variables de aquí usando dos eventos onChange:
Código HTML:
Ver original
<input type="hidden" name="filenames" id="filenames" value="" /> <p><input type="file" name="filename" id="filename" onChange="ajaxUpload(this.form,'scripts/ajaxupload.php?filename=filename&maxSize=9999999999&maxW=200&fullPath=http://localhost/PRUEBACMS/uploads/&relPath=../uploads/&colorR=255&colorG=255&colorB=255&maxH=300','upload_area','File Uploading Please Wait...<br /><img src=\'images/loader_light_blue.gif\' width=\'128\' height=\'15\' border=\'0\' />','<img src=\'images/error.gif\' width=\'16\' height=\'16\' border=\'0\' /> Error in Upload, check settings and path info in source code.'); copiar(filename,filenames);" />