Actions29
- Chat Actions
- Contact Actions
- Group Actions
- Message Actions
- Status Actions
Message → Upload File
AI-generatedOverview
This node operation uploads a file to the Green API cloud storage for WhatsApp messaging. It supports uploading files either from binary data provided by a previous node or from a file path on the system. This is useful for scenarios where you want to programmatically upload media files to be used in WhatsApp messages, such as images, documents, or videos.
Use Case Examples
- Uploading a user-uploaded image from a previous node's binary data to Green API cloud storage.
- Uploading a document file from a specified file path on the system to Green API cloud storage for later sending via WhatsApp.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Choose the source of the file to upload, either binary data from a previous node or a file path on the system. |
| Binary Property | Name of the binary property which contains the file data (used when input data type is binary data). |
| File Path | Path to the file on your system (used when input data type is file path). |
| Override Credentials | Override the instance ID and API token credentials for this specific operation. |
Output
JSON
fileId- Identifier of the uploaded file returned by Green APIurlFile- URL of the uploaded file in Green API cloud storagefileName- Name of the uploaded filestatus- Status of the upload operation
Dependencies
- Green API service requiring instance ID and API token credentials
Troubleshooting
- Ensure the binary property name matches the actual binary data property in the input when using binary data input type.
- Verify the file path is correct and accessible when using file path input type.
- Check that the instance ID and API token credentials are valid and have permission to upload files.
- Common error messages include failures to read the file, invalid input data type selection, or API request failures. These can be resolved by verifying input parameters and credentials.
Links
- Green API Documentation - Official documentation for Green API, including file upload API endpoints and authentication.