Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Nov 2013 13:43:43 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Frank Leonhardt <frank2@fjl.co.uk>
Cc:        freebsd-questions@freebsd.org
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



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