91-9990449935 0120-4256464 |
Uploading file to the server using JSPThere are many ways to upload the file to the server. One of the way is by the MultipartRequest class. For using this class you need to have the cos.jar file. In this example, we are providing the cos.jar file alongwith the code. MultipartRequest class
Commonly used Constructors of MultipartRequest class
Example of File Upload in JSPIn this example, we are creating two files only, index.jsp and fileupload.jsp. index.jspTo upload the file to the server, there are two requirements:
upload.jspWe are uploading the incoming file to the location d:/new, you can specify your location here. If size of the file is greater than 1MB, you should specify the post size.
Next TopicDownloading File From The Server In Jsp
|