sFTPPushStart
FTP Function Reference
This function starts an upload stream to the remote server. You must use sFTPPushMore and sFTPPushEnd to complete the transfer.
<DllImport("SapphireFTP.dll")> _
Public Function sFTPPushStart(ByVal sLocalFile As String, ByVal sRemoteFile As String, ByVal lTransferType As Integer, ByVal lLicence As Integer) As Integer
End Function |
Parameters
|
sLocalFile |
|
|
A string specifying the name of the local file to upload. |
|
sRemoteFile |
|
|
A string specifying the name of the new remote file the local data
will be copied to. |
|
lTransferType |
|
|
An integerspecifying how the function will handle the upload. Use one
of the following:
FTP_TRANSFER_UNKNOWN
FTP_TRANSFER_ASCII FTP_TRANSFER_BINARY
|
|
lLicence |
|
|
An integer specifying the licence number of the registered utility.
If using in demo mode, enter 1234567890. |
Return Values
|
Returns a number indicating success or failure. If the operation
was successful then the return value will be FTP_NO_ERROR.
Use sFTPErrorText to get a string
version of the error message. |
|