Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

File upload not working  RSS feed

 
Sriram Ramani
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to upload a file, but the file gets uploaded and opens in a notepad. This problem occurs only in IE 7. please help in this regard.

<form method="post" id="Form1" name="Form1"
enctype="multipart/form-data">
<input type="file"
align="left" id="input2" name="input2" size="25"
value="" onchange="captureFile(this)" />

</form>

Script:
function captureFile(obj){
alert('in captureFile');
document.forms.Form1.action = 'URL.exc';
document.forms.Form1.submit();
}
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!