How to Uploading file to the server using JSP
Example of File Upload in JSPindex.jsp
To upload the file to the server, there are two requirements:
You must use the post request.
encodeType should be multipart/form-data that gives information to the server that you are going to upload the file.
<form action="upload.jsp" method="post" enctype="multipart/form-data">
Select File:<input type="file" name="fname"/><br/>
<input type="image" src="MainUpload.png"/>
</form>
To upload the file to the server, there are two requirements:
You must use the post request.
encodeType should be multipart/form-data that gives information to the server that you are going to upload the file.
<form action="upload.jsp" method="post" enctype="multipart/form-data">
Select File:<input type="file" name="fname"/><br/>
<input type="image" src="MainUpload.png"/>
</form>
Post a Comment