Hi guys,
I’m trying to call the click() function of a upload file object. When I submit the page after click on that button and picking file to upload. It clears the file object value and does not submit the page. Anyone had that same issue before? see my code below cannot figure out what’s wrong.
๐ฎ
PS : that issue is with IE7, in Firefox it’s another problem. but one at the time
<html>
<body>
<form name=frm enctype=”multipart/form-data” action=”upload.jsp” method=”POST”>
File<input name=”uploadedfile” type=”file”>
<input type=button onClick=”uploadedfile.click();” value=”Fake It”>
<input type=”submit” value=”upload”>
</form>
</body>
</html>