huangkun
07-31-2002, 01:09 AM
Hi, I'm trying to create a page to upload files automatically. This is my code:
<form name="frmUpload" action="upload.asp" method="post" enctype="multipart/form-data">
<input type="file" name="file1" value="<%=FilePath%>">
</form>
<script language="Javascript">
document.frmUpload.submit();
</script>
The problem is:
the "value" property is read only, the value couldn't be set unless user click "Browse" button and choose a file. Is there any way can change the value by coding. Thanks
<form name="frmUpload" action="upload.asp" method="post" enctype="multipart/form-data">
<input type="file" name="file1" value="<%=FilePath%>">
</form>
<script language="Javascript">
document.frmUpload.submit();
</script>
The problem is:
the "value" property is read only, the value couldn't be set unless user click "Browse" button and choose a file. Is there any way can change the value by coding. Thanks