FTPUploadDirectly Method
Description
Directly upload a specific file to the FTP server without loading it into Dynamic Webcam.
| ActiveX Edition | Plug-in Edition | Mac Edition |
|---|---|---|
| Since V7.0 | Since V7.0 | Since V7.0 |
Syntax
Boolean ObjectName. FTPUploadDirectly (String FTPServer, String LocalFile, String FTPRemoteFile)
Parameters
String FTPServer: the name of the FTP server.
String LocalFile: specify the the full path of a local file.
String FTPRemoteFile: the name of the file to be created on the FTP server. It should be a relative path on the FTP server.
Return value
Boolean.
TRUE indicates success. FALSE indicates failure.
When an error occurs and IfThrowException property is TRUE, an exception will be thrown.
When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.
Remarks
FTPRemoteFile parameter should include the FTP directory of the file.
Write permission of the specified directory is needed for uploading.
See also
FTPUserName property, FTPPassword property, FTPPort property, ProxyServer property, FTPDownload(), HTTPPort property, HTTPUserName property, HTTPPassword property, HTTPDownload(),, HTTPUploadThroughPut(), HTTPUploadThroughPost()
Sample
A JavaScript sample is provided.
<script language="javascript">
Webcam = document.getElementById("iDynamicWebcam");
//iDynamicWebcam is the id of the Dynamic Webcam on the page (An object or an embed).
function btnFTPUploadDirectly_onclick() {
Webcam.FTPUploadDirectly("192.168.1.20", "D:/temp/TestData.zip", "/temp/TestData.zip");
}
</script>
