IMGBB icon

IMGBB

Upload images to imgbb

Upload

AI-generated

Overview

This node uploads images to the IMGBB image hosting service. It supports uploading images from three input modes: binary data from previous nodes, direct image URLs, or raw base64-encoded image strings. The node is useful for automating image uploads in workflows, such as saving images from various sources to IMGBB for easy sharing or embedding.

Use Case Examples

  1. Uploading an image file received from a previous node in binary format to IMGBB.
  2. Uploading an image by providing a direct URL to the image on the web.
  3. Uploading an image by providing a base64-encoded string of the image data.

Properties

Name Meaning
Input Mode Specifies the source of the image to upload, either binary data, a URL, or a base64 string.
Binary Property The name of the binary property to upload when input mode is binary.
Image URL The direct URL to the image when input mode is URL.
Base64 String The raw base64 string of the image data when input mode is base64.
Name Optional filename or label to attach to the uploaded image.
Expiration (Seconds) Optional time-to-live (TTL) in seconds for the uploaded image before it expires.
Additional Fields Optional additional fields to include in the upload request.

Output

JSON

  • json - The JSON response from IMGBB API containing details about the uploaded image, including URL and status.

Dependencies

  • IMGBB API key credential required for authentication.

Troubleshooting

  • Missing or invalid IMGBB API key will cause the node to throw an error indicating the API key is missing.
  • If the specified binary property is missing or empty, the node will throw an error indicating the missing binary property for the item index.
  • If the image URL or base64 input is empty when required, the node will throw an error indicating the missing input for the item index.
  • If the IMGBB API returns a failure response, the node will throw an error indicating the upload failed with the status code if available.

Links

Discussion