Forums Register Login

Exception with FileUpload

+Pie Number of slices to send: Send
I am using a HTML form with ENCTYPE="MULTIPART/FORM-DATA" to upload a file , at the other servlet, i just want to check the request to see whether it is a multipart/form-data or not but i receive an error: javax.servlet.ServletException: Servlet execution threw an exception

Which Exception i have to include ?

Thank you for your help and looking for your replies .
[ September 21, 2005: Message edited by: Bear Bibeault ]
+Pie Number of slices to send: Send
Alex...

I would recommend that you give a few more details of the code (servlet or JSP?) which is receiving the uploaded file.

Also, even though it hasn't been updated in a while, I would check out the famous multipart upload free code written by Jason Hunter (co-author of Java Servlet Programming, O'Reilly).

HTH -

David.
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1071 times.
Similar Threads
BufferedWriter for Mulitple file type
FileUploading in struts
POST data with a file upload
Why multipart/form-data does not work with post metho in servlet
Problem in Java Mail using Servlet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:38:10.