Ask AI
Skip to main content

Upload files to folder

Function: Upload files to folder

This function allows you to transfer a file from your application to a specified folder on an external FTP server. It's useful for automating the storage of documents, reports, or any other files in a remote location.

Input

  • File: The file you want to send to the FTP server. (Type: File)
  • Folder: The specific folder on the FTP server where the file will be stored. (Type: Folder)

Output

This action does not return any specific data, but it successfully uploads the specified file to the designated folder on the FTP server.

Execution Flow

Real-Life Examples

Here are some practical ways you can use the "Upload files to folder" function:

Example 1: Archiving Daily Sales Reports

  • Scenario: At the end of each business day, you generate a sales report in PDF format and need to store it on an FTP server for long-term archiving.
  • Inputs:
    • File: The generated daily sales report (e.g., Sales_Report_2023-10-27.pdf).
    • Folder: The FTP folder designated for sales reports (e.g., /archive/sales_reports/).
  • Result: The Sales_Report_2023-10-27.pdf file is successfully uploaded to the /archive/sales_reports/ folder on your FTP server.

Example 2: Storing Customer Invoices

  • Scenario: After a customer completes an order, your application generates an invoice. You want to automatically upload this invoice to a secure FTP folder for your accounting department.
  • Inputs:
    • File: The newly generated customer invoice (e.g., Invoice_CUST12345_ORD67890.pdf).
    • Folder: The FTP folder for customer invoices (e.g., /invoices/customers/).
  • Result: The Invoice_CUST12345_ORD67890.pdf file is uploaded to the /invoices/customers/ folder on the FTP server, making it accessible to the accounting team.

Example 3: Updating Product Images on a Website

  • Scenario: You have a new product image that needs to be published on your e-commerce website, which pulls images from an FTP server.
  • Inputs:
    • File: The new product image (e.g., new_product_shoe.jpg).
    • Folder: The FTP folder where product images are stored (e.g., /website/images/products/).
  • Result: The new_product_shoe.jpg file is uploaded to the /website/images/products/ folder on the FTP server, making it available for your website to display.