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

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

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

  1. #1
    Join Date
    Mar 2005

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


    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'>

    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
    Join Date
    Oct 2005
    this form is 100&#37; correct, [except for standard formatting: tags should be small letters], but non-standard should't be an issue... what's ur problem when trying to request POSTED data? what do u get??
    Programmer&Cracker CS

Similar Threads

  1. Replies: 3
    Last Post: 04-22-2008, 09:42 AM
  2. Copying data from one txt file to another
    By mp_direct in forum VB Classic
    Replies: 1
    Last Post: 11-05-2005, 03:28 PM
  3. Advanced file system manipulation
    By ranma172 in forum .NET
    Replies: 0
    Last Post: 10-18-2005, 04:16 AM
  4. wav file fade in out help
    By jase_dukerider in forum C++
    Replies: 2
    Last Post: 04-14-2005, 07:48 PM
  5. NullPointerException when reading text file
    By Andrew McLellan in forum Java
    Replies: 3
    Last Post: 05-09-2001, 05:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center