Re: [Web-ftp] Uploading/downloading recursively and others
Status: Beta
Brought to you by:
aball
From: Anthony R. J. B. <an...@su...> - 2002-07-17 19:58:14
|
I have actually looked into tarring or zipping (since both work with linux and winzip), but what time I have spent on it has not yielded me a good solution. Web-FTP already feeds files through on a stream, and if tar or zip will allow the generation of an archive on the fly, i.e. either by knowing just the name and size of the files or putting them in one after the other, then I would be glad to add it. If you can show me a perl example of it, or documentation describing it then point me to it... On Wed, Jul 17, 2002 at 09:49:46PM +0200, Jos? Mar?a Fern?ndez Gonz?lez wrote: > Hi everybody, > I've just installed today latest version of WebFTP, and it's very, very > good. But, while I was testing it I realized there is no easy way to > transfer tons of files from or to the FTP server. > > These are my thoughts about a 'recursive' implementation. > > I remembered the trick wuftpd implements, and from the WebFTP point of > view means downloading all the selected directories and/or files, and > send the compressed archive back to the web client (not all the FTP > servers are wuftpd). For uploading could be similar, but in the other > way: server receives a compressed file (.tar.gz or .zip, for instance) > and it decompresses the content in a tmp dir, and then all the content > is transferred to a given directory (or the current one) in the FTP > server. > > Then, looking the code, I realized all the content to be shown in > WebFTP has to be stored in memory before sending it. I'm developing CGIs > since more than 3 years, and one thing I've learnt is you can feed web > server (and so, the web client) with a pipe, so you can send/receive > content on the fly if you are able to process it on the fly, with no > rewinds. Both zip and tar/gzip are able to work with pipes, but unzip > depends on the way it was generated. > > A security problem can arise if 'recursive' uploading is done using > compressed archives, if absolute paths are used or relative paths > reaches parent directories. The general sandbox is to work in a > chroot'ed directory, but this is a privileged operation... > > Jos? Mar?a Fern?ndez > > -- > Jos? Mar?a Fern?ndez Gonz?lez e-mail: jmf...@cn... > Tlfn: (+34) 91 585 49 21 Fax: (+34) 91 585 45 06 > Grupo de Dise?o de Proteinas Protein Design Group > Centro Nacional de Biotecnolog?a National Center of Biotechnology > C.P.: 28049 Zip Code: 28049 > Campus Universidad Aut?noma. Cantoblanco, Madrid, Spain. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Web-ftp-general mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-ftp-general -- ___ __ __ __ _ _ ____ _ _ ____ ____ / __)( )( ) /__\( \/ )( ___) ( \( )( ___)(_ _) \__ \ )(__)( /(__)\\ / )__) ) ( )__) )( (___/(______)(__)(__)\/ (____)()(_)\_)(____) (__) Didn't I meet you in some other hallucination?? |