当前位置: 动力学知识库 > 问答 > 编程问答 >

java - how to set a file in a fileInput in an HTML form

问题描述:

I have a java form like

<form

action="/something.do"

enctype="multipart/form-data"

name="someForm"

method="post"

id="someFormID"

class="form1"

style="margin: 0px; clear: both; width: 730px;">

<input type="file" name="file"/>

</form>

now in the same JSP i need to set this file attribute a have a file ,but not by browsing but by simply adding the path or something like this.

I need to make this automated

any ways to achieve this ??

分享给朋友:
您可能感兴趣的文章:
随机阅读: