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 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 image uploads programmatically within workflows that interact with Avito's services.

Practical example: A user wants to automate uploading product images to their Avito account as part of a larger workflow that creates or updates listings. This node handles the image upload step by taking the Base64-encoded image and sending it to Avito under the specified user credentials.

Properties

Name Meaning
Token The authentication token required to authorize the upload request on Avito's platform.
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 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 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 Avito.
  • The node uses an internal API helper method (uploadImages) which expects the image data as a Buffer created from the Base64 input.
  • No additional environment variables or external service configurations are explicitly required beyond providing the correct token and user ID.

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 File Data: Providing improperly encoded Base64 data will cause the upload to fail. Verify that the image is correctly encoded before passing it to the node.
  • API Response Errors: The node returns the raw API response parsed as JSON. Check the response fields for error messages or status codes indicating issues like rate limits, invalid parameters, or server errors.
  • File Name Issues: Ensure the file name is valid and includes an appropriate extension matching the image type.

Links and References

Discussion