You could use something like #expandpath('..')#/tempUploads to do that. expandpath() can be *very* useful sometimes. :-)
--Ben Doom Richard White wrote: > hi, > > i am creating an upload facility using the cffile tag. > > from all i have read it seems that the destination attribute needs to have > the full address to where the file will be saved to. however i want to > specify that it goes into a file on the wwwroot without specifying the full > address e.g. ("C:\ColdFusion8\wwwroot\appName\tempUploads") > > This would obviously be different if i were uploading it onto our web server. > usually referencing files i would simply put ("../tempUploads") so is there > anyway i can get it to still do this, without knowing the full path of where > it needs to be stored > > thanks > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:293485 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4