Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file upload problem

 
Javed Sardar
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The following is the HTML code I am using to upload a file

IN my servlet when I try to get request.getContentType, it is returning null.
Could anybody please suggest when am I going wrong.
Thanks and Regards,
Javed.
 
Arun Prasad Namasivayam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to change the <form> attribute "encoding" to "enctype" thatz the only error i can see in the HTML.
keep smiling
arun
 
M.K.A. Monster
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been using the oreilli classes, and when you look at these code there's something else interesting:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic