Rick, how are you returning this structure? You haven't got some funny format turning on as the return from the CFC function by accident have you?
Kym On 14/03/2013 15:49, Rick Faircloth wrote: > > The application.temp_images_directory is being set in application.cfc: > > <cfset application.temp_images_directory = 'e:\tempImages' /> > > The last part of the example below, the #newImageFileName#.#originalImageExt# > is being set in news.cfc, after an image has been uploaded. It's done this > way to be able to manipulate the filename part before the extension, such as: > > #newImageFileName#_400.#originalImageExt# > > I'm checking it right now by setting struct variables > in a cfc such as, > > <cfset saveNewsItemStruct.APPTEMP = > '#application.temp_images_directory#\#newImageFileName#_400.#originalImageExt#' > /> > > then, just returning the struct to the calling page: > > <cfreturn saveNewsItemStruct /> > > The saveNewsItemStruct.APPTEMP would end up looking like: > > e:\\temp_images\\duck_400.jpg > > And when I tried Dave's solution of using forward slashes, /, > instead of back slashes, I'd end up with: > > e:\/temp_images\/duck_400.jpg > > I'm not sure what is inserting the backslashes. I don't believe > I've ever run into this before. > > Rick > > > > -----Original Message----- > From: Jerry Milo Johnson [mailto:[email protected]] > Sent: Wednesday, March 13, 2013 10:18 PM > To: cf-talk > Subject: Re: Why is this happening?????? > > > how are you displaying it when the \ are appearing doubled? (something like > a js alert, or a cfoutput to an html page, or some other mechanism?) > > > On Wed, Mar 13, 2013 at 10:08 PM, Rick Faircloth > <[email protected]>wrote: > >> >> If I use this on a test page: >> >> <cfoutput>#application.temp_images_directory#</cfoutput> >> >> it comes out fine: e:\inetpub\webroot\tempImages >> >> I just don't see why (or how) it could be happening. >> >> Thanks for the feedback! >> >> Rick >> >> -----Original Message----- >> From: Jerry Milo Johnson [mailto:[email protected]] >> Sent: Wednesday, March 13, 2013 9:34 PM >> To: cf-talk >> Subject: Re: Why is this happening?????? >> >> >> what happens if you display the value INSIDE the cfc before you return it? >> what happens if you set the same variable OUTSIDE the cfc and display it? >> >> >> On Wed, Mar 13, 2013 at 9:23 PM, Rick Faircloth <[email protected] >>> wrote: >> >>> >>> This has been driving me crazy for two days and I GIVE UP! AHH! >>> >>> >>> If I create this variable in application.cfc: >>> >>> <cfset application.temp_images_directory = >> 'e:\inetpub\webroot\tempImages' >>> /> >>> >>> >>> and use it in news.cfc like this: >>> >>> <cfset saveNewsItemStruct = structNew()> >>> >>> <cfset saveNewsItemStruct.ATID = '#application.temp_images_directory#' /> >>> >>> >>> why in the WORLD would I get this: >>> >>> e:\\inetpub\\webroot\\tempImages >>> >>> >>> when I return the struct and display saveNewsItemsStruct.ATID????? >>> >>> Why are the path lines doubling? >>> >>> >>> I don't think I've seen this in 15 years of CF programming! >>> >>> (I'm getting too old for all this aggravation...) >>> >>> Thanks for any help! >>> >>> Rick >>> >>> >>> >>> >> >> >> >> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:355010 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

