hjksadfj - 2008-12-23 02:19:51
Congratulations to the maker of this control, all correct but, only i had a problem, when i upload a file very good but, the second upload didn't, then, i added a line in the uploader.js file in the function uploadFile, for renew the XMLHttpRequest object, like this:
function uploadFile(obj, dname) {
////////////////////
//added line
http=createRequestObject();
////////////////////
uploadDir=obj.value;
idname=obj.name;
dirname=dname;
filename=uploadDir.substr(uploadDir.lastIndexOf('\\')+1);
document.getElementById('loading'+idname).innerHTML="<img src='loading.gif' alt='loading...' />";
uploaderId = 'uploader'+obj.name;
uploader = obj.name;
document.getElementById('formName'+obj.name).submit();
timeInterval=setInterval("traceUpload()", 1500);
}
I hope, use them