Uploads a local file to the FTP server.
.FTPUploadDirectly(fTPServer, localFile, fTPRemoteFile, [optionalAsyncSuccessFunc, optionalAsyncFailureFunc]);
fTPServer: specifies the FTP server.
localFile: specifies the name of the local file to be uploaded, this should be the absolute path of the file.
fTPRemoteFile: specifies the file name, path included.
The following two parameters are optional. If either one exists or both exist, the method is asynchronous, otherwise it's synchronous.
optionalAsyncSuccessFunc: callback function triggered when the file is uploaded successfully.
optionalAsyncFailureFunc: callback function triggered when the file failed to be uploaded.
Only valid when used synchronously.
true indicates success.
false indicates failure.
Dynamic Web TWAIN processes the image format according to the extension of