Possible Duplicate:
How to upload files in JSP/Servlet?
I'm having some strange issue with file uploads using servlets.
I read that I need to add the following attribute to my form: enctype="multipart/form-data"
The thing is, when I'm adding this, all the POST data don't reach the HttpServletRequest object (the one with all the data collected from the form). When I'm removing the "enctype" attribute from my form, everything seems to work fine and I can see all the data the user entered in the form.
What am I doing wrong? How can I successfully combine between "regular" form data and a file upload?