Upload to FTP Server on Cloud

Discussion in 'Tally Developer' started by Nirmit Choraria, Feb 22, 2022.

    
  1. Nirmit Choraria

    Nirmit Choraria New Member


    Hi,

    I am using the below code for Uploading the Report as PDF to FTP Server.

    [#Form: Sales Color]
    Add : Button : At End: FTPUploadBtn

    [Button: FTPUploadBtn]
    Title: "Upload PDF"
    Key : Alt + N
    Action : Call: FTPUpload

    [Function : FTPUpload]
    10 : Set : SVUploadType : $$SysName:FTPSite
    20 : SET : SVFtpServer : "ftp://192.168.26.139"
    30 : SET : SVFtpUser : "tally"
    40 : SET : SVFtpPassword : "tally1234"
    50 : SET : SVUploadFormat : $$SysName:pDF
    ;60: Set : SVPrintFileName : "upload\"+$$String:$VoucherNumber+"-"+$$String:##VARVchDate
    70: Set : SVPrintFileName : $$MakeFTPName:#SVFtpServer:#SVFtpUser:#SVFtpPassword:$$String:mad:@TallySerialNum+"-"+$$String:$Vouchertypename+ "-" +$$String:$vouchernumber + ".pdf"
    ;50: Set : SVPrintFileName : ##SVExportLocation+"\"+#SVPrintFileName
    ;06 : Set : SVPrintFileName : $$MakeFTPName:#SVFtpServer:#SVFtpUser:#SVFtpPassword:$$String:$VoucherNumber+ "-" +$$String:##VARVchDate + ".pdf"
    80 : Upload Report : . : True



    I have 2 linux ftp servers with me,
    One is a local machine in the network other one is on the cloud. Both have identical configurations. Nothing is been blocked on either side.

    Message on Local Server - File Uploaded
    Message on Cloud Server - Upload Failed

    Can you tell me what is the issue.
     


  2. Sai Vineeth

    Sai Vineeth Active Member


    try uploading using any ftp application and check
     


  3. Nirmit Choraria

    Nirmit Choraria New Member


    I used the FTP application and it is working from there.

    I posted in this thread after trying all the possible solutions including the FTP application.

    Thanks
    Nirmit
    Cloud Administartor
     


Share This Page