Re: Control Download File List
Using CFCONTENT to deliver files is not the best solution, don;t forget that files have to be loaded into memory before they are delivered, so can have adverse effects. Another solution posted by Pete Freitag last week was installing mod_xsendfile (you can get this for both Apache and IIS 7 via Helicon Ape). With mod_xsendfile on your server you simply write a X-Sendfile: c:\path\to\file.jpg in your getImage.cfm file (you don't need to serve it with cfcontent, which frees up CF to do other things). This allows you to keep the files outside of the web root (protected) and still allow you to run your security code in CF. -- Russ Michaels www.bluethunderinternet.com : Business hosting services solutions www.cfmldeveloper.com : ColdFusion developer community www.michaels.me.uk : my blog www.cfsearch.com : ColdFusion search engine sky ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348302 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Control Download File List
I am trying to create a CF template that will allow users to download files that that have names matching a specific criteria. For example, Sample File Names in directory 133555_xyz 133600_abc 223450_abc 340126_oop 349888_abc If id code ='349234' allow download of any file name like '34%' In this example should only allow files 340126_oop 349888_abc for download list. Any help would be greatly appreciated Mark Rogers Vice President- Information Services National Association of Insurance and Financial Advisors 2901 Telestar Court Falls Church, VA 22042 (703) 770-8130 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348298 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Control Download File List
Hi Mark As far as I know, you'd need to do this use cfcontent/cfheader to deliver a file, that itself sits outside of the web root but still accessible to the CF server. If the file is within the web root, and someone has the url, CF (as far as i know) cant control access to it if the file-url is requested directly. On Fri, Oct 21, 2011 at 7:29 PM, Mark Rogers mrog...@naifa.org wrote: I am trying to create a CF template that will allow users to download files that that have names matching a specific criteria. For example, Sample File Names in directory 133555_xyz 133600_abc 223450_abc 340126_oop 349888_abc If id code ='349234' allow download of any file name like '34%' In this example should only allow files 340126_oop 349888_abc for download list. Any help would be greatly appreciated Mark Rogers Vice President- Information Services National Association of Insurance and Financial Advisors 2901 Telestar Court Falls Church, VA 22042 (703) 770-8130 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348300 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm