Attachment Upload to FTP Servers via Scheduled Tasks

  • Last update:December 19, 2025
  • Overview

    Version

    Report Server Version
    Functional Change

    11.0

    /

    11.0.5

    Supported the upload of only the individual report results (excluding general results) to the FTP server and the creation of separate folders for each user to store files if Default User Group is configured and Generate Result (Except for General Result) Separately Based on User in the Default User Group is selected in Schedule Result of a scheduled task.

    Application Scenario

    After a scheduled task is finished, you may want to back up the generated files or upload them directly to an FTP server to prevent data loss.

    To achieve this, you can set a scheduled task to upload the attachments to an FTP server.

    iconNote: 
    You are advised to set up an SFTP (Secure File Transfer Protocol) server for more secure communication. For details, see Attachment Upload by SFTP.

    Example

    In this example, a scheduled task is configured to upload the daily sales detail attachment to an FTP server every day at 6:00 PM.

    FTP Server Configuration

    You need to set up an FTP server to store files in advance. The FTP server used in this example runs on Windows.

    Task Creation

    Log in to the decision-making platform as the admin, choose System Management > Task Schedule > Task Management, and click Add Task to add a scheduled task, as shown in the following figure.

    Basic Setting

    1. Set Task Name to Daily Sales Detail Report.

    2. The Default User Group setting is not required.

    Click Next, as shown in the following figure.

    Schedule Object

    1. Set Object Type to Report Template, and select GettingStartedEN.cpt from the template drop-down list.

    2. Set File Name to Sales Performance for ${now()}.

    3. Select all options in Appendix Archive.

    4. Select No Cleanup in File Processing.

    Click Next, as shown in the following figure.

    iconNote: 

    1. The file types selected in Appendix Archive are the types of files that will be uploaded to the FTP server.

    2. Starting from FineReport projects of V11.05, if Default User Group is configured and Generate Result (Except for General Result) Separately Based on User in the Default User Group is selected in Schedule Result, only the individual report results (excluding general results) will be uploaded to the FTP server, and a separate folder will be created for each user to store their files.

    Schedule Cycle

    Select Detailed Frequency Setting in Frequency, and click Add.

    Set Execution Time to 18 Hour 0 Minute, Execution Date to Every Day, and Execution Month to Select All, and click OK to add the frequency setting. Click Next, as shown in the following figure.

    File Processing

    1. Select Attachment Upload by FTP in Processing Method. Enter the server information, and select a transmission mode as needed, as shown in the following figure.

    The following table describes the server information fields.

    Setting ItemDescription

    Server Address

    IP address of the server

    Enter XXX.X.XXX.XXX directly instead of ftp://XXX.X.XXX.XXX/; otherwise, the “invalid IPv6 address” error will occur.

    Port

    Port number of the FTP server

    Save Path

    Actual path to which files are uploaded

    The file storage path on the FTP server can be specified as /directory or directory. If the path is specified as /directory but no file is uploaded, you can remove the forward slash (/) from the path and re-upload the file.

    Username

    Username of the FTP account

    Password

    Password of the FTP account

    Transmission Mode

    Available modes: Passive and Active

    For details, see Difference between Active and Passive FTP.

    2. Click Test Upload. A prompt will pop up, saying "Test Upload Successful" upon successful file upload. Click Save, as shown in the following figure.

    Effect Preview

    Since the task is scheduled to run at 6:00 PM, you cannot view the effect immediately.

    To check the result right away, choose System Management > Task Schedule > Task Management, locate the task, and click the icon to run it immediately.

    After the task runs once, go to the file storage path on the FTP server. You should see that the attachments have been uploaded successfully.

    iconNote: 
    If a newly generated file has the same name as an existing file on the server, the existing file will be renamed with a timestamp.

    Attachment List


    Theme: Decision-making Platform
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy