Hey all thanks for your help.. Looking around I found many PHP and other scripting language sites talking about this same problem and basically saying it just wont happen on a Mac, so in true CFAUSSIE style I found a dodgy workaround.
If a Mac is requesting the file it does a direct link to the file, because Macs dont open PDF and Word docs in the browser. If the client is a PC then it uses the CFHEADER/CFCONTENT method to download the file. seeya! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ryan Sabir Sent: Thursday, 23 January 2003 4:42 PM To: CFAussie Mailing List Subject: [cfaussie] CFCONTENT download to a Mac Hi all, I'm setting up a system to allow users to download PDF files from a server instead of them opening in the browser. The code to offer the file for download is this: <cfheader name="Content-Disposition" value="attachment;filename=pdffile.pdf"> <cfcontent type="unknown/unknown" file="d:\website\files\pdffile.pdf"> So far so good, however when I test this on the Mac, its offering the filename as 'downloadfile.cfm' instead of 'pdffile.pdf'. This was happening on the PC before I put the CFHEADER line in it. Does anyone know what the syntax of the CFHEADER line should be so the Mac browser gives the user the correct filename? Or is there something else I need to let Mac users download the file? thanks! ----------------------- Ryan Sabir Newgency Pty Ltd 2a Broughton St Paddington 2021 Sydney, Australia Ph (02) 9331 2133 Fax (02) 9331 5199 Mobile: 0411 512 454 http://www.newgency.com/index.cfm?referer=rysig --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
