Closed Thread Icon

Preserved Topic: FileSystemObject - ASP Pages that link to <a href="https://ozoneasylum.com/backlink?for=18301" title="Pages that link to Preserved Topic: FileSystemObject - ASP" rel="nofollow" >Preserved Topic: FileSystemObject - ASP\

 
Author Thread
Rane
Bipolar (III) Inmate

From: Denmark
Insane since: Oct 2001

posted posted 01-30-2002 08:16

Good morning

Got a question for the ASP-sharks inhere. I've created a file on the server using the FSO and added some lines to it. Its supposed to be created once a user clicks a "create file" button. After that, the user should automatically be given the download prompt to download the created file. Here comes the tricky part. How do I automatically delete the created file, once the download is complete?

Its like making a temp file on the server....letting the user download it....and when its downloaded...file should be deleted again.

Any ideas?

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 01-30-2002 10:28

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Rane
Bipolar (III) Inmate

From: Denmark
Insane since: Oct 2001

posted posted 01-30-2002 10:44

I have considered this solution yeah. The session would still be open when the user downloads the file. Then if he logs off i'd make a function in global.asa Session_onEnd which looks for the file...and if it exist...then it deletes it.

But what if the user decides to close the browser...or surf directly to another website. Then it could take 10mins for the session to timeout. Unless of course....its possible to make some "..on window.close, open popup window.." and then run the session.abandon code in that window with a self-close.

A bit tricky...

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 01-30-2002 11:58

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

At0mic_PC
Bipolar (III) Inmate

From: Columbia MS USA
Insane since: Apr 2001

posted posted 02-10-2002 17:01

How about making it delete before they write to it? Like when they hit submit it would delete the file if it exists and then create one. What are you going to do about 19 people trying to do that at the same time?

God bless,
Atomic

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 02-10-2002 18:28

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

At0mic_PC
Bipolar (III) Inmate

From: Columbia MS USA
Insane since: Apr 2001

posted posted 02-10-2002 21:19

Yeah I don't know how all this stuff works. Just that people would be modifying the same file? Or am I a moron?

God bless,
Atomic

Rane
Bipolar (III) Inmate

From: Denmark
Insane since: Oct 2001

posted posted 02-11-2002 08:07

In this case that situation will never appear, as every user can only create a file which consist of their userid - like 100250.csv

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 02-11-2002 09:55

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

« BackwardsOnwards »

Show Forum Drop Down Menu