Results 1 to 4 of 4
  1. #1
    pranith is offline Member
    Join Date
    Jul 2007
    Posts
    1
    Rep Power
    0

    Default how to upload a file along with html form data

    hi,
    when i try to upload a file along with html form data,am using enctype="multipart/form-data" in the form tag to upload a file.but when i use enctype="multipart/form-data" am unable to get form data.its showing null values.when i remove the enctype attribute from form tag its workin fine,but unable to upload the file.pls tell me what might be the reason...am geting frustated with this prob...pls help me out....

    lots of thanks in advance

  2. #2
    rasmita is offline Member
    Join Date
    Jul 2007
    Posts
    1
    Rep Power
    0

    Default

    hello
    i m a fresher in java programmer. I am not a good programmer but i ll try my best to know about it and your guidance would help me a lot.
    i need help in servlets and jsp programmes

  3. #3
    Swamipsn is offline Member
    Join Date
    Jul 2007
    Posts
    74
    Rep Power
    0

    Default

    Pls shhot your question

  4. #4
    brianhks is offline Senior Member
    Join Date
    Jul 2007
    Posts
    135
    Rep Power
    0

    Default

    Pranith,

    What you are after is the apache fileupload jar located at FileUpload - Using FileUpload

    When you set the encoding to multipart it all gets mime encoded and weird. I use the fileupload jar to decrypt it all and pull out the params as well as the files.

Similar Threads

  1. Upload excel data to access database
    By ravikumar.achi in forum New To Java
    Replies: 20
    Last Post: 01-19-2012, 12:30 PM
  2. how to upload a file?
    By tommy in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 06-30-2008, 03:50 PM
  3. Replies: 0
    Last Post: 04-04-2008, 10:36 AM
  4. How to filter files in file upload using html contorl
    By deivaganesh in forum Advanced Java
    Replies: 0
    Last Post: 01-29-2008, 07:31 AM
  5. Getting HTML form values in Servlet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-17-2007, 09:13 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
  •