RE: escaping # signs in image file names
Is there a way to do this that anyone can think of? I have a page that I inherited that is outputting user-uploaded images, and just today, the user decided to upload images with #'s in the names. The images are not showing up because of this. Any way around this other than renaming the images? Wrap the filename in URLEncodedFormat()? 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! ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294024 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: escaping # signs in image file names
img src=/_images/#replace(filename, '##', '###', 'all')# width=164 height=140 border=0 / ? (might need 4 # there in the 3rd arg) On Nov 30, 2007 8:54 AM, Crow T. Robot [EMAIL PROTECTED] wrote: Is there a way to do this that anyone can think of? I have a page that I inherited that is outputting user-uploaded images, and just today, the user decided to upload images with #'s in the names. The images are not showing up because of this. Any way around this other than renaming the images? code: cfoutputpimg src=/_images/#filename# width=164 height=140 border=0/p/cfoutput ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294017 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: escaping # signs in image file names
Maybe replace the # with %23? On Nov 30, 2007 12:22 PM, Charlie Griefer [EMAIL PROTECTED] wrote: img src=/_images/#replace(filename, '##', '###', 'all')# width=164 height=140 border=0 / ? (might need 4 # there in the 3rd arg) On Nov 30, 2007 8:54 AM, Crow T. Robot [EMAIL PROTECTED] wrote: Is there a way to do this that anyone can think of? I have a page that I inherited that is outputting user-uploaded images, and just today, the user decided to upload images with #'s in the names. The images are not showing up because of this. Any way around this other than renaming the images? code: cfoutputpimg src=/_images/#filename# width=164 height=140 border=0/p/cfoutput ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294020 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: escaping # signs in image file names
there's your answer folks. thanks jerry. On Nov 30, 2007 11:55 AM, Jerry Johnson [EMAIL PROTECTED] wrote: Maybe replace the # with %23? On Nov 30, 2007 12:22 PM, Charlie Griefer [EMAIL PROTECTED] wrote: img src=/_images/#replace(filename, '##', '###', 'all')# width=164 height=140 border=0 / ? (might need 4 # there in the 3rd arg) On Nov 30, 2007 8:54 AM, Crow T. Robot [EMAIL PROTECTED] wrote: Is there a way to do this that anyone can think of? I have a page that I inherited that is outputting user-uploaded images, and just today, the user decided to upload images with #'s in the names. The images are not showing up because of this. Any way around this other than renaming the images? code: cfoutputpimg src=/_images/#filename# width=164 height=140 border=0/p/cfoutput ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294021 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4