bepasty / bepasty-server

universal pastebin server
https://bepasty-server.readthedocs.org/
BSD 2-Clause "Simplified" License
192 stars 46 forks source link

self-destructing items #80

Open ThomasWaldmann opened 10 years ago

ThomasWaldmann commented 10 years ago

items could self-destruct not only after t_upload + dt (see #67 ), but also after reading or downloading them.

so you could type / paste a message and email the paste url of it to the recipient. if the recipient completely downloaded / rendered the item, the item will self-destruct.

this makes sure that either only the recipient reads the msg or the recipient will notice that someone else read it (because it is not there any more).

note: we usually redirect to item view after upload, reconsider this

ThomasWaldmann commented 10 years ago

fundamental problem: self-destruction would happen after a complete read or download, not before.

but what if a file is only downloaded 99.9%, but the last byte is never downloaded?

the downloader would likely have a quite complete file, but the file would not self-destruct...

seems like a bad idea, closing.

ThomasWaldmann commented 10 years ago

the problem with partial downloads can be solved by not supporting them for small items (like < 1KB).

with that plus a new item type x-bepasty-redirect it can work like this:

creation:

visit: