ExpandPath("../tempUploads") is what you're looking for.
-- Josh
----- Original Message -----
From: "Richard White" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Friday, November 16, 2007 10:06 AM
Subject: cffile destination
> 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
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293481
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4