FTP Function Reference

sFTPPushStart

FTP Function Reference

This function starts an upload stream to the remote server. You must use sFTPPushMore and sFTPPushEnd to complete the transfer.

Declare Function sFTPPushStart Lib "SapphireFTP.dll" (ByVal sLocalFile As String, ByVal sRemoteFile As String, ByVal lTransferType As Long, ByVal lLicence As Long) As Long

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
    A long specifying how the function will handle the upload. Use one of the following:
FTP_TRANSFER_UNKNOWN
FTP_TRANSFER_ASCII
FTP_TRANSFER_BINARY
  lLicence
    A long 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.