Upload multiple files using ClientHttpRequest Class


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: Upload multiple files using ClientHttpRequest Class

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    2

    Upload multiple files using ClientHttpRequest Class

    Does anyone have an example of how to upload multiple files using the ClientHttpRequest class. I've successfully upload a single file but wasn't sure how to build an array of files and upload. Thanks

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    If using the ClientHttpRequest class is not a requirement I have the code (html & java servlet) for using a MultipleRequestHandler, it enables the client to upload multiple files of any type. Can that be useful ?
    eschew obfuscation

  3. #3
    Join Date
    Jun 2006
    Posts
    2
    I guess it doens't have to be, it was just being used in the project I was messing with and seemed pretty simple. I can take a look at what you have if it isn't too difficult to implement. Thanks

  4. #4
    Join Date
    Jun 2006
    Posts
    1

    html & java servlet example

    I am interested in your html & java servlet example. Can you share?

  5. #5
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560

    File Upload Servlet

    Sorry for this late response, my internet connection has been gone for weeks


    Here is the servlet code. This servlet handles a form with multiple file tags a submit button an a hidden parameter (max upload size). File storage is not implemented in the Uploader servlet class (so you will have to make use of the methods
    getFile(), getFileList() and getFileNames() in the MixedRequestHandler class)
    Attached Files Attached Files
    eschew obfuscation

  6. #6
    Join Date
    Nov 2007
    Posts
    1
    anybody send the source code for multible file upload using servlet

    regards,

    ragovindan

  7. #7
    Join Date
    Mar 2008
    Posts
    1

    upload applet

    You could try an HTTP upload applet such as JFileUpload:
    http://www.jfileupload.com/products/...oad/index.html

    It could work with Jakarta File Upload to handle request on server-side:
    http://commons.apache.org/fileupload/
    (Source code is available).

    I hope it helps.

  8. #8
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Multiple File Upload - VB6
    By Zycron in forum VB Classic
    Replies: 1
    Last Post: 09-24-2005, 01:12 AM
  2. reading multiple text files
    By simon in forum XML
    Replies: 6
    Last Post: 07-27-2001, 12:58 PM
  3. Replies: 3
    Last Post: 06-12-2001, 11:05 AM
  4. Replies: 1
    Last Post: 03-09-2001, 08:49 AM
  5. Generating multiple text files.
    By frewini in forum XML
    Replies: 0
    Last Post: 01-05-2001, 01:21 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