Reply
Old 10-06-2009, 12:23 AM delete after loading
Skilled Talker

Posts: 60
Trades: 0
Is it possible to delete a file from the server after it was been loaded on a viewer's screen?
wachtn is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-06-2009, 09:46 PM Re: delete after loading
Skilled Talker

Posts: 60
Trades: 0
My aim is to have a file deleted after it has been viewed to keep it from being copied or looked at by any one other than the person it is intended for. Is there any was to do this?

Sry if my original question was poorly worded.
wachtn is offline
Reply With Quote
View Public Profile
 
Old 10-06-2009, 10:01 PM Re: delete after loading
tripy's Avatar
Do not try this at home!

Posts: 3,176
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Not with javascript alone. You will need a server side language to do so.
Javascript can be used to fire the deletion though.

The simpliest, don't put the file directly to download.
Store them outside the reach of the web server.
When a user request it, and if you allow it, use a page as a "proxy".
This page will read the file from the unreachable location, and sent it to the browser (something like "while not end of file, read from source and print to browser" in pseudo code)

Store those access in a db, and simply flag them allowed/disabled for a given url.
You can even put timers in place that way.
Generate an download url that is valid only for 3 minutes, or so.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is online now
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 10-07-2009, 02:18 AM Re: delete after loading
Skilled Talker

Posts: 60
Trades: 0
Thanks tripy, ill look into that.
wachtn is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to delete after loading
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10964 seconds with 13 queries