Overview
This node, named "Avito Upload Image," is designed to upload an image file to the Avito platform using a provided user token and user ID. It accepts an image encoded in Base64 format along with its filename, sends this data to Avito's API, and returns the response from the upload operation.
Common scenarios for this node include automating the process of adding images to Avito listings or managing media content on Avito programmatically. For example, it can be used in workflows that prepare product listings by uploading associated images directly from other systems or databases without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Token | An authentication token required to authorize the upload request to Avito's API. |
| User Id | The identifier of the user account on Avito where the image will be uploaded. |
| file | The image file content encoded as a Base64 string. |
| fileName | The name of the image file being uploaded (e.g., "image.jpg"). |
Output
The node outputs a JSON array parsed from the response returned by the Avito API after attempting to upload the image. This JSON typically contains details about the uploaded image such as its URL, status, or any metadata returned by Avito.
No binary data output is produced by this node; all output is structured JSON data representing the result of the upload operation.
Dependencies
- Requires access to Avito's API endpoint for image uploads.
- Needs a valid authentication token and user ID for authorization.
- The node depends on an internal
AvitoApi.uploadImagesmethod which handles the actual API call. - Input image must be provided as a Base64-encoded string.
Troubleshooting
- Invalid Token or User ID: If the token or user ID is incorrect or expired, the API call will fail. Ensure these credentials are valid and have the necessary permissions.
- Malformed Base64 String: Providing an improperly encoded Base64 string for the image will cause errors during the conversion or upload. Verify the encoding before passing it to the node.
- API Response Errors: Any error messages returned by Avito's API (such as rate limits, invalid file types, or size restrictions) will be included in the JSON output. Review these messages to adjust inputs accordingly.
- Network Issues: Connectivity problems may prevent successful communication with Avito's API. Check network settings and retry if needed.
Links and References
- Avito API Documentation (general reference for Avito API usage)
- Base64 Encoding Guide: https://en.wikipedia.org/wiki/Base64