File upload <FORM ENCTYPE='multipart/form-data' method='POST' action='/myservlet'>
Hi,
recently I try to implement a file upload in my project, however, everything works fine but the problem now is I can't request.getParameter("") from previous form.
I found out that the code in bold causes this problem.
<FORM ENCTYPE='multipart/form-data'
method='POST' action='/myservlet'>
<INPUT TYPE='file' NAME='mptest'>
<INPUT TYPE='submit' VALUE='upload'>
</FORM>
Please advise me on how to solve this problem or is there any other api that is better in handling the file upload. Cheers~
Re: File upload <FORM ENCTYPE='multipart/form-data' method='POST' action='/myservlet'>
Each submit handles only 1 form, the one it's in. Not any other previous forms