Hm. Well, it works most of the time, and it's a nifty way to serve stuff from outside the webroot. But, I suppose I could probably come up with a different way to do it....
----- Original Message ----- From: "Dave Watts" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Friday, May 06, 2005 11:02 AM Subject: RE: java.net.SocketException Error? >> I've recently started getting this error on a site that we're >> testing. I haven't found much on google. >> >> The error is thrown by this function, which is in a cfc. It's >> intermittent, though. I can use it to browse the same file, and >> I don't get the error. >> >> <cffunction name="serveDocument" access="public" returntype="string" >> output="false"> >> <cfargument name="file" type="string" required="yes"> >> <cfargument name="path" required="true" type="string" >> default="#variables.documentpath#"> >> >> <cfset var contenttype = >> variables.utilities.getMimeType(arguments.file)> >> <cfset var returnString = ""> >> >> <cfif checkfile(arguments.file, arguments.path)> >> <cfsavecontent variable="returnString"> >> <CFHEADER NAME="Content-Disposition" VALUE="inline; >> filename=#arguments.file#"> >> <cfcontent type="#contenttype#" >> file="#arguments.path##arguments.file#"> >> </cfsavecontent> > > I wouldn't be surprised if this is caused by using CFHEADER within > CFSAVECONTENT. That combination strikes me as problematic, and I would try > to avoid it. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > > Fig Leaf Software provides the highest caliber vendor-authorized > instruction at our training centers in Washington DC, Atlanta, > Chicago, Baltimore, Northern Virginia, or on-site at your location. > Visit http://training.figleaf.com/ for more information! > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205873 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

