Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).

PUT File

no avatar
User

hightower130

Posts

2

Joined

Thu Apr 21, 2005 4:03 am

PUT File

by hightower130 » Thu Apr 21, 2005 8:43 am

I am trying to upload a picture to an FTP an no errors are being thrown but the image is not being saved. It works when I run it on my local machine but when it is being run from the webserver it does not work.


This is the code that I am using. I don't understand why it works when using my local machines connection but fails when I use the webserver connection.

ftp = New FTPClient(host)

ftp.Login(user, password)
ftp.ConnectMode = FTPConnectMode.PASV
ftp.TransferType = FTPTransferType.BINARY
ftp.ChDir("images")
ftp.Put(sFile, sFile2)
ftp.Quit()
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: PUT File

by support2 » Thu Apr 21, 2005 4:34 pm


Who is online

Users browsing this forum: No registered users and 131 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign