Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Storage → Upload File

AI-generated

Overview

This node interacts with the Appwrite Storage API to upload files to a specified storage bucket. It is useful for automating file uploads within workflows, such as saving user-generated content, backups, or media files to cloud storage managed by Appwrite. For example, it can upload images, documents, or any binary data from previous workflow steps into a designated storage bucket with optional permissions.

Use Case Examples

  1. Uploading a user profile picture from a binary data field to a storage bucket.
  2. Saving a generated report file to a cloud storage bucket with specific access permissions.

Properties

Name Meaning
Bucket ID The ID of the storage bucket where the file will be uploaded.
File ID The unique identifier for the file being uploaded. Can be generated automatically using unique().
Input Binary Field The name of the input binary field containing the file data to upload.
Permissions An array of permission strings defining access control for the uploaded file.

Output

JSON

  • fileId - The ID of the uploaded file.
  • bucketId - The ID of the storage bucket where the file was uploaded.
  • permissions - The permissions set on the uploaded file.

Dependencies

  • Appwrite API endpoint
  • Project ID
  • API key credential for authentication

Troubleshooting

  • Ensure the Bucket ID is correct and the bucket exists in Appwrite.
  • Verify the binary input field name matches the actual binary data field in the workflow.
  • Check that the API key has sufficient permissions to upload files to the specified bucket.
  • If permissions are provided, ensure they are formatted correctly as an array of strings.

Links

Discussion