NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: bergsj on September 29, 2010, 05:25:20 AM
-
Just wanted to reply on this oldie:
Re: Delete file AFTER Sending ( download)
I did what Bruce was saying: Prepend the filename with $$$.
The files won't go away.
My code:
loc:filenameonly = '$$$' & FORMAT(TODAY(), @D12) & FORMAT(CLOCK(), @T05) & RANDOM(1000,9999) & '-' & Doc:DocumentFileName & '.' & Doc:DocumentFileExt
loc:filename = clip(p_web.site.UploadsPath) & '\' & loc:filenameonly
p_web.HeaderDetails.ContentDisposition = 'attachment; filename="' & loc:filenameonly & '"'
Any ideas?
Cheers!
-
What sendfile is looking for is '\$$$' in the filename. So be sure to send it the complete path to the file.
HTH
chris
-
Chris,
I send the full filename to the client, including the $$$.
Can it be the fact that I use the uploadspath to temporarily place the files to be send?
-
Hi Sjoerd,
As I recall, Bruce told us to serve the $$$ files from the web folder.
Groetjes,
Rene Simons
-
He Rene!
That did the trick.
Thanks for your reminder!
Groetjes!
Sjoerd