Forum Moderators: phranque

Message Too Old, No Replies

automatic deletion of file after successful download

         

foy

1:56 pm on Oct 15, 2004 (gmt 0)

10+ Year Member



subject says it all.

let's say someone downloads a file from my server. is there a way I can tell the server to delete that file after it has been successfully downloaded? but only if successful cause if it's being aborted to leave it the way it is.

thanks

jdMorgan

8:29 pm on Oct 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This level of function is not built-in to Apache Server. You will need a server-side script to handle the download and delete the file, and a client-side script to tell the server-side script that the file has been successfuly downloaded so that it can be deleted.

Jim