Actions100
- Activity Logs Actions
- Articles Actions
- Asset Layouts Actions
- Asset Passwords Actions
- Assets Actions
- Get Assets
- Get Companies Company Id Assets
- Post Companies Company Id Assets
- Get Companies Company Id Assets Id
- Put Companies Company Id Assets Id
- Delete Companies Company Id Assets Id
- Put Companies Company Id Assets Id Archive
- Put Companies Company Id Assets Id Unarchive
- Put Companies Company Id Assets Id Move Layout
- Cards Actions
- Companies Actions
- Expirations Actions
- Exports Actions
- Folders Actions
- IP Addresses Actions
- Lists Actions
- Magic Dash Actions
- Matchers Actions
- Networks Actions
- Password Folders Actions
- Procedure Tasks Actions
- Procedures Actions
- Public Photos Actions
- Rack Storage Items Actions
- Rack Storages Actions
- Relations Actions
- Uploads Actions
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
- Refer to the external API documentation for detailed requirements on photo formats, supported record types, and authentication methods.
- n8n documentation on handling binary data and file uploads: https://docs.n8n.io/nodes/expressions/#working-with-binary-data