Re: [ACFUG Discuss] Newbie's Next Daunting Dilemma

2008-02-22 Thread Tommy Geist
We use the cfcontent tag as well. We have our documents stored in binary in the database so we just run a query to pull the data out and then use the cfcontent tag : cfheader name=content-disposition value=attachment; filename=#docName# cfcontent type=#DocEXTMime# variable=#DocBinData# --- Mike

Re: [ACFUG Discuss] Newbie's Next Daunting Dilemma

2008-02-22 Thread Howard Fore
On 2/21/08, Darin Kohles [EMAIL PROTECTED] wrote: if you absolutely want to give the full URL, then use the format 'http://yourdomain.com/' - as the file(s) will have to be located relative to your web root. Yep. This is the method I've followed in the past. I've found that there are a lot

Re: [ACFUG Discuss] Newbie's Next Daunting Dilemma

2008-02-22 Thread Dean H. Saxe
How do you then control unauthorized access to the file? How do you know when to delete the file? -dhs Dean H. Saxe, CISSP, CEH [EMAIL PROTECTED] [T]he people can always be brought to the bidding of the leaders. This is easy. All you have to do is to tell them they are being attacked,

Re: [ACFUG Discuss] Newbie's Next Daunting Dilemma

2008-02-22 Thread Steven Ross
The only problems I have ever seen with cfcontent and setting the doc type is that people get confused that things just open however, they forget that they actually told their browser to do this at some point when they installed software. So i usually end up sending pdf's or whatever and forcing

Re: [ACFUG Discuss] Newbie's Next Daunting Dilemma

2008-02-22 Thread Howard Fore
Well sure, you have to balance those concerns, it depends on the sensitivity of your output. If you need to control access to the files, assuming you had an authenticated user system, you could have an output directory per user or group and authenticate the user's access to that directory in

Re: [ACFUG Discuss] Newbie's Next Daunting Dilemma

2008-02-22 Thread Darin Kohles
In regards unauthorized access, one work-around that I've built in the past was the following: In a typical CMS, most managed file content is abstracted into an ID based folder and file structure; these ID's are stored in the database along with a friendly name. When a user wants access to the

Re: [ACFUG Discuss] Newbie's Next Daunting Dilemma

2008-02-22 Thread Steven Ross
yikes what about this? cfheader name=Content-Disposition value=attachment; filename=#fomattedName# On Fri, Feb 22, 2008 at 5:05 PM, Darin Kohles [EMAIL PROTECTED] wrote: In regards unauthorized access, one work-around that I've built in the past was the following: In a typical CMS, most

Re: [ACFUG Discuss] Newbie's Next Daunting Dilemma

2008-02-22 Thread Peyton Todd
Thanks everyone, that worked beautifully. To wit: function ScannedStyle(jn){ subdir = jn.substr(0,3); fullpath = 'c:/ScannedStyles/' + subdir + '/' + jn + '.pdf'; showpdf = 'ShowPDF.cfm?thepdf=' + fullpath; win=window.open(showpdf,'Style','width=800,height=500,resizable=yes');