Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: Uploading a file
N/A posted April 8, 2002 1:11 PM

When I try to use the put command I'm getting an exception that the directory can not be created. The path I specified is in this format "directory1/directory2/" and it works fine when getting files. Am I just putting the path in incorrectly?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 8, 2002 3:05 PM


Hi,
The following VB.NET code worked for me.
Neither directory2 nor directory1 existed on the server prior to the call.
-ken

Ftp1.Put("c:\file.txt", "directory1/directory2/file.txt")

K M Drake
Dart Tech Support
N/A posted April 8, 2002 4:18 PM

Thanks. I didn't realize that you had to put the filename in as well.
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX