
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.
http://files.agentonagency.com/index.php
POST
multipart/form-data
imageFile (Required, file): The binary image data.fileName (Optional, string): Base name for saved file (no extension). Default: sequential (e.g., `image_00001`). Output extension defaults to .png or detected type.{
"imageUrl": "http://files.agentonagency.com/n8n_binary_images/image_00001.png",
"fileName": "image_00001.png"
}
{
"error": "Descriptive error message."
}
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.