Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Storage → Upload File
AI-generatedOverview
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
- Uploading a user profile picture from a binary data field to a storage bucket.
- 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
- Appwrite Storage Documentation - Official documentation for Appwrite Storage API, including file upload details.