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 integrating Avito image uploads into larger workflows where images are generated or processed dynamically.

For example, a user might use this node to automatically upload product photos to their Avito account after processing images elsewhere in their workflow.

Properties

Name Meaning
Token The authentication token required to authorize the upload request on Avito.
User Id The identifier of the Avito user account 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., "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 output is structured JSON.

Dependencies

  • Requires access to the Avito API via an external service call.
  • Needs a valid authentication token ("Token") and user ID ("User Id") for authorization.
  • The node uses a helper method to convert the Base64-encoded image string into a buffer before uploading.
  • No additional environment variables or n8n-specific credentials beyond the provided token are explicitly required.

Troubleshooting

  • Invalid Token or User ID: If the token or user ID is incorrect or expired, the API call will fail. Ensure these values are correct and have the necessary permissions.
  • Malformed Base64 File: If the Base64 string is not properly formatted, the conversion to a buffer may fail or the API may reject the upload. Verify that the input file is correctly Base64 encoded.
  • API Errors: The node returns the raw API response parsed as JSON. Check this output for error messages indicating issues like file size limits, unsupported formats, or network problems.
  • Empty or Missing Required Fields: Since all properties are required, missing any of them will likely cause the node to throw an error or fail the upload.

Links and References

Discussion