This method transfers a file to the FTP server. (It includes connecting to and disconnecting from the server.)

[Visual Basic]   [ Boolean = ]imagekitcontrolname.File.FTPPutFile(ServerName As String, ProxyName As String, PortNo As Integer, PassiveMode As Boolean, RemoteFilePath As String, UserName As String, Password As String, TransPercent As Long)
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetFile().FTPPutFile(LPCTSTR ServerName, LPCTSTR ProxyName, short PortNo, BOOL PassiveMode, LPCTSTR RemoteFilePath, LPCTSTR UserName, LPCTSTR Password, long TransPercent)
[VB.NET]   [ Boolean = ]imagekitcontrolname.File.FTPPutFile(ServerName As String, ProxyName As String, PortNo As Short, PassiveMode As Boolean, RemoteFilePath As String, UserName As String, Password As String, TransPercent As Integer)
[C#.NET]   [ bool = ]imagekitcontrolname.File.FTPPutFile(string ServerName, string ProxyName, short PortNo, bool PassiveMode, string RemoteFilePath, string UserName, string Password, int TransPercent)

Parameters

Name Explanation
ServerName The name of the FTP server or IPAddress
ProxyName The Proxy Server IP Address
PortNo Port Number (default is 21)
PassiveMode Enables passive mode connectivity: False(0) = Active Mode Connection; True(nonzero) = Passive Mode Connection
RemoteFilePath The destination on the FTP server where the file is to be saved. Includes path and file name
UserName The username needed to access the FTP server
Password The password needed to access the FTP server
TransPercent The percentage of the file that is tranferred before the ImageKit Progress event is generated

Return Value

Returns True (nonzero) if successful. Returns False (0) if unsuccessful.

Explanation

The FTPPutFile method transfers a file to the FTP server. (It includes connecting to and disconnecting from the server.) This method can only be executed from the client computer. It does not operate on the server. The TransPercent parameter sets the amount of transfer in percentage before the ImageKit Progress event fires. For example, if the TransPercent = 10, the ImageKit Progress event will fire 10 times, 1 time for each 10% of file transferred.

The file to be transferred is specified by the FileName property.

When not using a proxy server set the ProxyName to an empty string, to vbNullString(Visual Basic), to NULL(Visual C++), to Nothing(VB.NET), or null(C#.NET).

 

The ImageKit10 ActiveX is a product created by Newtone Corporation