Avito Upload image NEW icon

Avito Upload image NEW

Overview

This node, named "Avito Upload Image NEW," is designed to upload an image file to the Avito platform using a provided API 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 image uploads programmatically within workflows that integrate with Avito's services.

For example, a user could automate uploading product photos directly from a database or another system into Avito listings without manual intervention.

Properties

Name Meaning
Token The API authentication token required to authorize the upload request to Avito.
User Id The identifier of the Avito user account under which 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., "photo.jpg").

Output

The node outputs a JSON array containing the parsed response from the Avito API after attempting to upload the image. This response typically includes details about the uploaded image such as its URL, status, or any error messages returned by the API.

No binary data output is produced by this node; all results are returned as structured JSON.

Dependencies

  • Requires access to Avito's API endpoint for image uploads.
  • Needs a valid API token and user ID for authentication.
  • The node uses a helper method to convert the Base64 string into a buffer before sending it to the API.
  • No additional environment variables or n8n-specific credentials beyond the provided token and user ID are explicitly required.

Troubleshooting

  • Invalid Token or User ID: If the API token or user ID is incorrect or expired, the upload will fail. Ensure these values are current and valid.
  • Malformed Base64 String: Providing an incorrectly formatted Base64 string for the image will cause errors during conversion or upload. Verify the Base64 encoding of the image.
  • API Response Errors: The node returns the raw API response parsed as JSON. If the upload fails, check the returned message for specific error details from Avito.
  • File Name Issues: Ensure the file name is correctly specified and includes an appropriate extension matching the image type.

Links and References

Discussion