| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: FTP.put error when using file and path name |
| pverrykt From: Turnhout, Belgium Posts: 2 Member Since: 07/09/03 |
posted July 9, 2003 6:00 AM Hi, When I use the upload feature in my web application (vb.Net) with the submitted file as a stream ther is no problem. When I do this using the file and path name I get the following error: Could not find a part of the path "c:\Projects\Sample.jpg". My code: Dim file As Dart.PowerTCP.Ftp.FtpFile FtpTemp.BlockSize = 2048 Try file = FtpTemp.Put("c:\Projects\Sample.jpg", "Sample.jpg") Catch ... The file exists on that location and when uploading it using the sample app. it works fine. It even works when I upload it as a stream (with the httpPostedfile) Is there something I need to do ? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted July 9, 2003 10:38 AM Hi, I am unable to reproduce this problem. It really sounds like the path in question does not exist. Do you see the same problem with files in other folders? If you use an OpenFileDialog component to set the localfile, does it work? If so, what is the OpenFileDialog.FileName? Thanks, -ken |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|