Alicloud OSS icon

Alicloud OSS

Operate Alibaba Cloud OSS within n8n workflows (ali-oss SDK)

Upload

AI-generated

Overview

This node uploads binary data to Alibaba Cloud OSS (Object Storage Service). It is useful for automating the process of storing files such as images, documents, or backups in Alibaba Cloud OSS directly from n8n workflows. For example, you can upload a file received from a webhook or generated within a workflow to a specified OSS bucket path.

Use Case Examples

  1. Uploading an image file from a previous node's binary data to Alibaba Cloud OSS under a specific folder and filename.
  2. Automating backup of generated reports by uploading them as files to Alibaba Cloud OSS.

Properties

Name Meaning
Object Key Full path of the OSS object where the file will be uploaded, e.g., folder/file.txt.
Binary Property Name of the binary property in the input data that contains the file to upload.

Output

JSON

  • success - Indicates if the upload was successful (true/false).
  • url - The URL of the uploaded object in Alibaba Cloud OSS.
  • objectKey - The full path of the uploaded OSS object as specified in the input.

Dependencies

  • Requires Alibaba Cloud OSS API credentials including region, accessKeyId, accessKeySecret, bucket, and optionally endpoint.

Troubleshooting

  • Common issues include invalid or missing credentials, incorrect object key paths, or missing binary data in the specified binary property.
  • Errors during upload will throw messages that can be captured if 'Continue On Fail' is enabled, allowing the workflow to continue processing other items.
  • Ensure the binary property name matches the input data's binary field containing the file to upload.

Discussion