Hi All,
How to set the path value to file object using javascript. now i am trying to upload the file without using browse button, but i could not set the path value..
see my code:
<form name="thisForm" enctype="multipart/form-data">
<table align="center">
<tr>
<td align="left"><b>Select a file to upload :</b></td>
</tr>
<tr>
<td align="left">
<input type="file" id="filename" name="uploadfile" size="50">
</td>
</tr>
<tr>
<td align="left">
<input type="button" name="button" value="Upload" onClick="fnupload()">
</td>
</tr>
</table>
</form>
// not reflecting
document.thisForm.uploadfile.value="C:\Documents and Settings\test.txt";
document.thisForm.action="UploadFile.jsp"
document.thisForm.method="post";
document.thisForm.submit();
Thanks
Kalaivani