Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jul 2006 15:11:25 +0200
From:      Phil Regnauld <regnauld@catpipe.net>
To:        Brian Candler <B.Candler@pobox.com>
Cc:        Mikhail Teterin <mi+mx@aldan.algebra.com>, isp@freebsd.org, net@freebsd.org
Subject:   Re: forcing FTP-uploaded files to be of certain types only
Message-ID:  <20060718131124.GB75090@catpipe.net>
In-Reply-To: <20060718125547.GB26642@uk.tiscali.com>
References:  <200607171306.01882.mi%2Bmx@aldan.algebra.com> <20060718125547.GB26642@uk.tiscali.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Brian Candler (B.Candler) writes:
> How wedded are you to FTP? If this was a HTTP 'PUT' then a simple CGI could
> read in 100 bytes, check it is compressed (e.g. with libmagic), then copy
> through the rest of the file. The result from the PUT can be a HTML page
> saying "all OK" or "please compress your data first"

	A reverse FTP proxy (squid might or might not support FTP proxying
	on "PUT", to be checked) with an external handler.  Around 50 lines
	of Perl ought to do the trick.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060718131124.GB75090>