Uploads a file to an FTP Server (synchronous operation initially).
object.upload(Name, Folder [, Wait ][, FileAlreadyExists])
Newlook Smartclient only.
Name – (String, Required)
The name of the file to upload.
Folder – (String, Required)
Full path of the file to be uploaded.
Wait – (Integer, Optional)
Optional parameter to specify whether the execution of the action should wait for the upload to complete (synchronous) or start the upload without waiting (asynchronous). This parameter should be set to one of the Wait constants.
FileAlreadyExists – (Integer, Optional)
Optional parameter to specify the action to take if the file being uploaded already exists. This parameter should be set to one of the File Already Exists constants.
The following example connects to an ftp server, uploads the ZZVAS.SAVF file then disconnects: VB SCRIPT:App.SetValue"varConnectionString", "Network Address=ftp.gu2i.com;Network Port=21;Use Encryption for Data=False;User ID=test;Password=abcd;Host CCSID=37;Passive=True;Anonymous Login=False;Email [email protected];Library List=QGPL.LIB,QHLPSYS.LIB,QSYS.LIB,QSYS2.LIB,QTCP.LIB,QUSERSYS.LIB;List Formats=OS/400 QSYS.LIB;Download Folder=" & varPath & ";Connect Timeout=60;Receive Timeout=60;Send Timeout=60;Maximum Simultaneous Transfers=4;Transfer Options=7;Transfer Types=doc Binary,txt ASCII"
App.FtpConnect "iSeries_test", varConnectionString
iSeries_test.Upload "ZZVAS.SAVF", "/tmp/", FTPUploadWait , FTPUploadAbort
iSeries_test.disconnect |
FTPConnect Method | Disconnect Method | Upload Method | ChangeFolder Method | Download Method | NewFolder Method | NewLibrary Method | NewMember Method | NewPhysicalFile Method | Quote Method | Rename Method
© 2004-2021 looksoftware. All rights reserved.