n8n Binary Image to URL API

Automation Tribe Logo

This API endpoint was made by Automation Tribe.
Join our community at https://www.skool.com/automation-tribe.

This API converts uploaded binary image data (e.g., from an n8n binary field) into a publicly accessible URL. Input is via multipart/form-data.

Logging: Errors are logged to a file in the 'logs' subfolder of n8n_binary_images.

Server Status

API Usage

Endpoint

http://files.agentonagency.com/index.php

HTTP Method

POST

Content Type

multipart/form-data

Form Data Parameters:

Success Response (JSON)

{
    "imageUrl": "http://files.agentonagency.com/n8n_binary_images/image_00001.png",
    "fileName": "image_00001.png"
}

Error Response (JSON)

{
    "error": "Descriptive error message."
}

How to Use (cURL Example)

curl -X POST 'http://files.agentonagency.com/index.php' \
  -F "imageFile=@/path/to/your/local/image.png" \
  -F "fileName=my_test_image"

n8n: Use HTTP Request node with "Form-Data (Multipart)". Add `imageFile` field, set its value to your binary data (e.g., `{{ $binary.data }}`) and ensure n8n sends it as a "File" type. Add optional `fileName` field as regular form data.