There are two sides of your problem: the server and the client. If you use FTPClient in the servlet you need a FTP server on the client (Which is not a very common situation). If your client doesn't have a FTP server the only option to use FTP is the other way round: Build an applet that is an FTP client that write to a FTP server on the server. The second option is to write an applet that posts the files in the directory to a servlet so you can use the MultiPartRequest in the servlet. > -----Ursprüngliche Nachricht----- > Von: Adilakshmi Lingam [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 28. März 2001 22:39 > An: Tomcat-User@Jakarta. Apache. Org > Betreff: Multiple files upload > > > Hi, > > We need to upload all the files in a directory from the > clients machine to > the server. > I've been reading that we could achieve that using the Oreilly's > MultipartRequest object. But I understood that you can do > that file by file > only but not all the files if the client selects a directory. > > If anyone has experience in uploading multiple files through > a servlet, I > would appreciate if you could guide me in the right direction. > > I was also considering using FTPClient class in sun.net package. But > couldn't find any documentation for that. Is it advisable to > use that? any > thoughts on FTP from a servlet?? > > Thanks for your help, > Lakshmi > >
