I have this form into an html page:
<form name="form1" id="form1" action="test" method="post" enctype="multipart/form-data">
<input type="hidden" name="hiddenfield1" value="ok">
File to upload:
<input type="file" size="50" name="file3">
<br/>
<input type="submit" value="Upload">
</form>
I want to send a file to this page calling it from java and passing the file path through my client.
How could I do this?
您需要一个类似于Commons FileUpload的库,该库实现了Web浏览器的一部分,用于填写表格(尤其是“上传文件”部分)。
It sounds like you need server-side Java. I suggest looking into Java Servlets. That is one way to accomplish this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.