Hi,
I am using a JSP file to upload a form
i am using file upload tag
I dont want to display the file upload tag ‘s text box
so what i did was i hide file upload tag and on another button click
i called file upload tag’s click event
i coulld very well browse the file
but upon form submit the fie is not getting uploaded
<input type=”file” name=”[B]form_data
<script language=”javascript”>
//Choose File
function chooseFile(){
document.getElementById(“form_data”).click();
}
</script>
The issue what i found was after the end of function the form_data tag doesn’t holds the value
is there any way in javascript to keep the file tag hold value till form gets submitted??
any help appreciated