Hi All,
We can sent the file to FTP server using CMD prompt.
When trying send file using cache FTP. it automatically logged out.
While cache FTP access (read/write) FTP server it automatically logged out.
CODE:
S ftp=##class(%Net.FtpSession).%New()
S Server="test"
S Username="test"
S Password="test"
I $L(Server)=0||($L(Username)=0)||($L(Password)=0) S Status="Invalid Credentials" Q Status
S ConnSt=ftp.Connect(Server,Username,Password)
I 'ConnSt S Status="Couldn't Estabilish the FTP connection" Q Status
;
;Linking the file
D


