Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Rep Power

    Default Doubt regarding Directory Upload using HTTPclient3.1 library

    Hello everyone,

    I am new to using Apache HTTP Client3.1 library. I understood how to upload a file in specified location using Apache commons file- upload ,but i was unable to understand how to upload directories using Apache commons file upload . For ex: You see, the directory contains some files in it as well as other directories. Basically this directory also has sub-directories and files.

    Can anyone suggest me how to proceed further.

    Thanks & Regards,

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Rep Power


    the http-client only handles standard HTTP methods. such as GET, POST, PUT. for more advanced features like "mkdir" on the server, you could create an administrative servlet (like on a different URL) /myapp/createFolder?path=aDir and your client app would need to know to call that if needed (such as the directory did not exist).. and then use the commons-httpclient facility to PUT a file.

    Another idea, there might be to see if some existing API projects that do this already in a higher level protocl, such as WebDAV.

Similar Threads

  1. doubt
    By Chris555 in forum Networking
    Replies: 0
    Last Post: 08-05-2009, 03:58 PM
  2. Tell me jar file for library library org.bouncycastle.cms
    By 82rathi.angara in forum New To Java
    Replies: 10
    Last Post: 09-09-2008, 06:11 AM
  3. How to create a directory using the library
    By bachtoutou in forum New To Java
    Replies: 3
    Last Post: 05-23-2008, 11:08 PM
  4. doubt
    By shaju_inspira in forum Sun Java Wireless Toolkit
    Replies: 0
    Last Post: 01-18-2008, 09:38 AM
  5. doubt in jms
    By veena in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 01-05-2008, 02:42 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