sFTPPut
FTP Function Reference
This function uploads a file from the local drive to the remote FTP server.
<DllImport("SapphireFTP.dll")> _
Public Function sFTPPut(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 integer specifying 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. |
Remarks
|
The sFTPPut function does not work on PPC2002 and has been included
for backwards compatibility. Use sFTPPush
if your application may be running on PPC2002. |
|