Hi,
I am in the process of writing a program which uploads a file being selected by <pre> <input type=file> </pre>. Please help me in this regard.
I want the source code for this, if possible.
Thanks in advance.
Ramagopal
Discussions
Web tier: servlets, JSP, Web frameworks: Problem in Uploading a file Through a Servlet - Help Needed
-
Problem in Uploading a file Through a Servlet - Help Needed (3 messages)
- Posted by: Allampalli Ramagopal
- Posted on: November 01 2000 05:32 EST
Threaded Messages (3)
- Problem in Uploading a file Through a Servlet - Help Needed by sridhar Kumar on November 06 2000 10:23 EST
- Problem in Uploading a file Through a Servlet - Help Needed by Allampalli Ramagopal on November 07 2000 02:36 EST
- Problem in Uploading a file Through a Servlet - Help Needed by Dipes Biswas on November 23 2000 04:08 EST
- Problem in Uploading a file Through a Servlet - Help Needed by Allampalli Ramagopal on November 07 2000 02:36 EST
-
Problem in Uploading a file Through a Servlet - Help Needed[ Go to top ]
- Posted by: sridhar Kumar
- Posted on: November 06 2000 10:23 EST
- in response to Allampalli Ramagopal
you can use the java provided class MultipartRequest which is available in java help in sun.java.com.
first you have to send the request to a servlet as a method post. In that servlet you have to create an object of Multipartrequest class by send the arguments the HttpRequest object and the size of the file. Automatically it will upload the file to the targetted directory.
regards
sridhar tida.
-
Problem in Uploading a file Through a Servlet - Help Needed[ Go to top ]
- Posted by: Allampalli Ramagopal
- Posted on: November 07 2000 02:36 EST
- in response to sridhar Kumar
Hi,
I cannot find the class MultipartRequest. Can you help me in that.
Ramagopal
-
Problem in Uploading a file Through a Servlet - Help Needed[ Go to top ]
- Posted by: Dipes Biswas
- Posted on: November 23 2000 04:08 EST
- in response to Allampalli Ramagopal
Hi,
you can find the class in the site : http://www.servlets.com/resources/com.oreilly.servlet/
it is provided by O'reilly.