NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on April 16, 2010, 03:04:27 AM

Title: Delete file AFTER Sending ( download)
Post by: rjolda on April 16, 2010, 03:04:27 AM
Hi,
Net talk 5 
I have used BlobtoFile to extract the PDF file from my blob to a file on my disk and the client is then "sent the file".

Question:  Where do I put the code to DELETE this file from disk AFTER it has been downloaded - i.e. - how do I know when the download has been completed?

Thanks
Ron Jolda
Title: Re: Delete file AFTER Sending ( download)
Post by: Bruce on April 17, 2010, 04:54:49 AM
Hi Ron,

If the file name on disk starts with a $, then it will automatically be deleted after sending.

Cheers
Bruce
Title: Re: Delete file AFTER Sending ( download)
Post by: rjolda on April 17, 2010, 04:53:26 PM
Bruce,
I am naming the file.
Are you telling me  that if I pre-pend a $ to the name, Net Talk will automagically delete the file after sending?
Is it the "$" as the first character of the name that triggers the delete after send?
Thanks,
Ron
Title: Re: Delete file AFTER Sending ( download)
Post by: Bruce on April 17, 2010, 08:50:29 PM
Sorry - correction - that should be $$$ at the beginning not just $.

>> Are you telling me  that if I pre-pend a $$$ to the name, Net Talk will automagically delete the file after sending?

yes.

>> Is it the "$$$" as the first 3 characters of the name that triggers the delete after send?

yes.

Cheers
Bruce