In between opening the connection and uploading the file you can use the 
"changedir" 'action':

<cfftp connection = "imediatestconn"
action = "changedir" 
directory = "Pages">


B)




SAMARIS Software wrote:
> I am using the following code to ftp files from my cf app to another server 
> 
> <cfftp connection = "imediatestconn"
> username = "#un#" 
> password = "#pw#" 
> passive = "yes"
> timeout="180"  
> server = "#server# " 
> directory="Pages"
> action = "putfile" 
> localfile="D:\FTP\Austaccomm\Htdocs\samaris\pnr\pages\bca_#building_name#_#u
> nit#_gallery.txt" 
> remotefile="#building_name#_#unit#_gallery.txt">
> 
> The files are uploading to the server however they are being placed in the
> root directory when I want to have them placed into a specific sub directory
> called /pages
> 
> can someone enlighten me as to what I need to do to be able to upload to the
> sub directory rather than the room directory
> 
> Regards 
> 
> Claude Raiola 
> B.Econ (Acc), B.Hot.Mngt. 
> 
> Websites: 
> www.AustralianAccommodation.com 
> www.SAMARIS.NET 
> www.WebSiteSolutions.com.au 
> Mobile: 0414 228 948
> 
> 
> 
> > 
> 
> 

-- 
Brett Payne-Rhodes
Eaglehawk Computing
t: +61 (0)8 9371-0471
m: +61 (0)414 371 047
e: [email protected]
w: http://www.yoursite.net.au


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to