Well, did you think I actually tested that code! ;) Seriously though, good catch on the application.defaultImagePath. I just put that sample together to put you on the right track, which it looks like it did.
Best, --Nathan >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf >Of Jeff Coughlin >Sent: Thursday, November 04, 2004 5:50 PM >To: FarCry Developers >Subject: [farcry-dev] Re: How do I delete an image that was >uploaded from a custom type? > >Nathan Mische wrote: >> <cfif len(stObj.Photo)> >> <cftry> >> <cffile action="delete" file="#stObj.Photo#"> >> <cfcatch type="any"></cfcatch> >> </cftry> >> </cfif> > >Nathan, > >Nice! Worked beautiful. You might want to change the file >location from file="#stObj.Photo#" to >file="#application.defaultImagePath#/#stObj.Photo#" >(in my case it was a custom subfolder >file="#application.defaultImagePath#/photos/#stObj.Photo#", >plus I had another file for the homepage version). > >Thanks Nathan. Now I owe you two beers! :) > >-Jeff C. > >P.S. Perhaps Brendan might want to add that code to the >bsPhoto.cfc in the tutorials. It works perfect (except make >sure to make that one change I mentioned). > >--- >You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] >To unsubscribe send a blank email to >[EMAIL PROTECTED] >Aussie Macromedia Developers: http://lists.daemon.com.au/ > > --- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
