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
    Posts
    31

    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
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    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
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

Similar Threads

  1. Replies: 3
    Last Post: 04-22-2008, 10: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, 04:28 PM
  3. Advanced file system manipulation
    By ranma172 in forum .NET
    Replies: 0
    Last Post: 10-18-2005, 05:16 AM
  4. wav file fade in out help
    By jase_dukerider in forum C++
    Replies: 2
    Last Post: 04-14-2005, 08:48 PM
  5. NullPointerException when reading text file
    By Andrew McLellan in forum Java
    Replies: 3
    Last Post: 05-09-2001, 06: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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