Overview
This node processes input items to check and ensure the correct binary data property is set for Twitter uploads. It scans each item's binary data properties to find an image MIME type and normalizes the binary data to a 'data' property for consistent handling. This is useful when preparing media files for Twitter API uploads, ensuring the binary data is correctly identified and formatted.
Use Case Examples
- Uploading images to Twitter via API where the binary data property needs to be standardized.
- Transforming incoming data streams to ensure the correct binary image data is set before further processing or uploading.
Output
JSON
originalProperty- The original binary property name that contains the image data.
Troubleshooting
- If no binary data is found, the item is passed through unchanged, which might cause issues if binary data is expected downstream.
- If no image MIME type is found in the binary properties, the node logs this and passes the item unchanged, which might require checking the input data format.