From owner-freebsd-questions@FreeBSD.ORG Sat Nov 9 12:44:02 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 73E5C7E5 for ; Sat, 9 Nov 2013 12:44:02 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 383D02BC7 for ; Sat, 9 Nov 2013 12:44:02 +0000 (UTC) Received: from r56.edvax.de (port-92-195-117-74.dynamic.qsc.de [92.195.117.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 1FE13254AE; Sat, 9 Nov 2013 13:43:54 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id rA9ChhHx002952; Sat, 9 Nov 2013 13:43:43 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 9 Nov 2013 13:43:43 +0100 From: Polytropon To: Frank Leonhardt Subject: Re: Deleting files after download Message-Id: <20131109134343.e20a2ef0.freebsd@edvax.de> In-Reply-To: <527E2A42.4080903@fjl.co.uk> References: <20131109103750.1545c9ae.freebsd@edvax.de> <527E2A42.4080903@fjl.co.uk> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Nov 2013 12:44:02 -0000 On Sat, 09 Nov 2013 12:27:46 +0000, Frank Leonhardt wrote: > For what it's worth, in a similar situation I opted for an email > notification that said "This file will be available for 14 days". Apart > from being somewhat easier to implement, it had the advantage that the > file could be downloaded by the same person on two or more hosts, more > than one recipient to the original email, and it was possible to forward > the link to other people who might also want the file. That's a nice extension of the original idea: multiple recipients, more than one download, retention period. > I used http/s for > getting the files up and down as it was just easier for the users > (especially cross-platform). This part involves the complexity I initially wanted to avoid: A HTTP server. Of course it would be able to parse its logs, but if possible, I'd rather not run a web server for that simple thing... As I said initially, I'd like the whole construction to be as simple as possible. > If you've not done this before, HTTP POST > and PHP are your friends. If you use PHP for upload, you can make it do > anything you like on download too. PHP remains, of course, the work of > Beelzebub and the fact that it's useful at times like this is simply > proof of its nefariousness. A web server _and_ PHP - this is becoming a really devlish plan for the darkest souls among the evil programmer hordes. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...