Avito Upload image icon

Avito Upload image

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 it to Avito's API, and returns the response as JSON. This node is useful for automating image uploads to Avito listings or profiles, streamlining workflows that involve managing Avito content programmatically.

Practical examples:

  • Automatically uploading product images to Avito when creating or updating listings.
  • Integrating Avito image uploads into larger automation pipelines for e-commerce or classified ad management.

Properties

Name Meaning
Token The authentication token required to authorize the upload request on behalf of the user.
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., "image.jpg").

Output

The node outputs a JSON array parsed from the response returned by the Avito API after uploading the image. This JSON typically contains information about the uploaded image such as its URL, status, or any metadata returned by Avito.

No binary data output is produced by this node.

Dependencies

  • Requires access to the Avito API via an external service call.
  • Needs a valid user token and user ID for authentication and authorization.
  • The node uses a helper method uploadImages from an imported API module to perform the actual upload.
  • 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 credentials are valid and have necessary permissions.
  • Malformed Base64 file input: If the Base64 string is invalid or corrupted, the upload will not succeed. Verify the encoding of the image before passing it.
  • API errors: Network issues or Avito API downtime can cause failures. Check connectivity and Avito service status.
  • Parsing errors: If the response from Avito is not valid JSON, the node will throw an error during parsing. Confirm the API response format.

Links and References

Discussion