• Post Reply Bookmark Topic Watch Topic
  • New Topic

Enctype='multipart/form-data in servlets  RSS feed

Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m working on the imae processing project.The application involves
1)Client selects the to be processed
2)the file is uploaded on the web server where it is processed and sent back to the client.
Problem is servlet is not supporting
<form action="" method= post Enctype="multipart/form-data">
req.getContentType() is giving "text/html" only and so the servlet gives "socket closed:IOException"I m using "Fileupload and MultipartRequest class" in O'reilly book.
Is their any problem with the code or any of the browsers/servlets API does not support this encoding?please help.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!