|
Renaming a CFContent File: msg#00070cms.cold-fusion.user.azcfug
Hi, all. I have a section where users can download Word and PDF documents. When they click the "download" link, it takes them to DownloadMMAsset.cfm, which logs the download, sends me an email, then runs the following CFContent to initiate the download: <cfcontent type="#DocumentType#" file="#PathToDocumentRoot##DocumentFile##DocumentCode#" deletefile="no"> Netscape pops up the typical "Open" or "Save To Disk" dialog box. If the user chooses Save To Disk, the filename is "DownloadMMAsset.doc", the same name of the script they're running. I want it to be the name of the file --- "WebExBrochure.doc" or whatever. Is there any way to control this? I have a worse problem with IE. IE intelligently opens the Word document instantly just by clicking on the download link, which is cool. But if you right-click on the link and select "Save Target As...", it names the file "VerticalAlliance.htm" (?!?!), and once downloaded, includes html code in the page, which includes a Login.cfm script that breaks the Word file on opening. (Of course, that's because saving that target is saving DownloadMMAsset.htm, NOT the file). Any suggestions on how to handle this elegantly? Thanks for any suggestions! ---Judd Miller Senior Programmer Vertical Alliance, Inc. __________________________________________________ Do You Yahoo!? Get Yahoo! Mail ? Free email you can access from anywhere! http://mail.yahoo.com/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | 2nd one: MYSQL date format: 00070, Marlene Buffa |
|---|---|
| Next by Date: | vss integration: 00070, Sean Tierney |
| Previous by Thread: | Should I Use A Structure?i: 00070, Judd M. Miller |
| Next by Thread: | RE: Renaming a CFContent File: 00070, Michael Sheldon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |