AvantGuard - WebhookSite icon

AvantGuard - WebhookSite

AvantGuard - WebhookSite

Actions100

Overview

This node operation allows users to upload a public photo and associate it with a specific record in an external system. It is useful when you want to programmatically add images to records such as articles, products, or other entities that support photo attachments. For example, you could automate uploading product images to an e-commerce platform or attach photos to blog posts in a content management system.

Properties

Name Meaning
Photo The image file to be uploaded. This must be provided as binary data representing the photo.
Record Type The type of record the photo will be linked to, e.g., "Article".
Record Id The numeric ID of the specific record to which the photo will be attached.

Output

The node outputs JSON data representing the result of the photo upload operation. This typically includes metadata about the uploaded photo and its association with the specified record. If the node supports binary data output, it would represent the uploaded photo or related files, but based on the provided code and properties, the main output is JSON confirming the upload status and details.

Dependencies

  • Requires an API key or authentication token configured in n8n credentials to authorize requests to the external service handling the photo uploads.
  • Depends on the external API endpoint defined by the base URL in the node's credentials.
  • The photo file must be provided as binary data within n8n for proper routing and upload.

Troubleshooting

  • Common issues:
    • Upload failure due to invalid or missing photo file (ensure the photo is a valid image and properly passed as binary).
    • Incorrect record type or record ID causing the API to reject the association.
    • Authentication errors if the API key or credentials are not set up correctly.
  • Error messages:
    • "Invalid photo format" or similar indicates the photo file is not recognized as an image.
    • "Record not found" suggests the provided record ID does not exist or is incorrect.
    • "Unauthorized" or "Authentication failed" means the API credentials need verification or updating.

Links and References

Discussion