NetTalk Central

Author Topic: Delete file AFTER Sending ( download)  (Read 2043 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 279
    • View Profile
    • Email
Delete file AFTER Sending ( download)
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
Re: Delete file AFTER Sending ( download)
« Reply #1 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

rjolda

  • Sr. Member
  • ****
  • Posts: 279
    • View Profile
    • Email
Re: Delete file AFTER Sending ( download)
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
Re: Delete file AFTER Sending ( download)
« Reply #3 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