Gaston, below is the syntax for downloading a file from a Linux server to a Windows client, where the Attach record has been saved into the tmp folder on the server.
DownloadFile("tmp/" & Attachr.FileName,"tmp\\" & Attachr.FileName, true);
Regards
Paul