Results 1 to 2 of 2

Thread: File upload <FORM ENCTYPE='multipart/form-data' method='POST' action='/myservlet'>

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    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~

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width