Suppose there are multiple forms in a web page, and one of the forms has file upload.
...
The question is how to get this file What about the uploaded URL?
The following is a JavaScript code example
function showUploadUrl() {
for(var i=0; ivar form = document.forms[i];
for (var j=0; jif ( form.elements[j].type==="file") {
alert("The upload address is:" form.action);
}
}
}
}