Package Information
Available Nodes
Documentation
n8n Node: Bozonx Temporary Files
Upload a binary file or a file URL to the temporary files microservice and get back a temporary link.
n8n is a fair-code licensed workflow automation platform.
- Installation
- How it works
- Credentials
- Parameters
- Usage examples
- Continue On Fail
- Compatibility
- Resources
Installation
Follow the official guide for installing community nodes: Community Nodes Installation.
Search for and install the package: n8n-nodes-bozonx-tmp-files-microservice.
How it works
The node sends a POST request to your API Gateway using the following URL pattern:
{{gatewayUrl}}/{{basePath}}/files
or for URL uploads:
{{gatewayUrl}}/{{basePath}}/files/url
gatewayUrlcomes from Credentials.basePathis a node parameter (default:tmp-files/api/v1). Leading and trailing slashes are ignored.- Authorization is injected automatically via a Bearer token from Credentials.
- The node returns the service response as JSON unchanged.
Endpoints and payloads:
- Binary upload:
POST /fileswithmultipart/form-datacontaining fieldsfile,ttlMins, and optionalmetadata. - URL upload:
POST /files/urlwith JSON{ url: string, ttlMins: number, metadata?: string }.
Credentials
Uses custom credentials: Bozonx Microservices API.
- Gateway URL (required)
- Example:
https://micros.example.com - Do not include the API path (no
/api/v1here).
- Example:
- API Token (required)
- Used as
Authorization: Bearer <token>.
- Used as
Notes
- The
Gateway URLmust include the protocol (http://orhttps://). - Do not add a trailing slash to
Gateway URL(the node will trim it if present). Base Pathmay be provided with or without slashes; the node trims leading/trailing slashes.- For URL uploads,
File URLmust be a non-empty absolute URL. Metadata (JSON)is sent as a string field; provide a valid JSON string if your backend validates it.
You can use expressions to pull values from environment variables:
- Gateway URL:
{{$env.GATEWAY_URL}} - API Token:
{{$env.API_TOKEN}}
Parameters
- Base Path (string, default:
tmp-files/api/v1)- API base path appended to
Gateway URL. Leading/trailing slashes are ignored.
- API base path appended to
- Source Type (options:
Binary,URL, default:Binary) - Binary Property (string, default:
data)- Name of the binary property from the incoming item. Visible only when
Source Type = Binary.
- Name of the binary property from the incoming item. Visible only when
- File URL (string)
- Direct URL to the file. Visible only when
Source Type = URL.
- Direct URL to the file. Visible only when
- TTL Value (number, min:
1, default:1) - Time to live value before the file is removed by the microservice.
- TTL Unit (options:
Minutes,Hours[default],Days) - Unit for the TTL value. The node converts this to minutes (
ttlMins) for the API. - Metadata (JSON) (string)
- Optional JSON string to associate with the file.
Usage examples
Binary upload
- Set
Source Type = Binary. - Ensure your incoming item has a binary property (default:
data). - Configure
TTL Value,TTL Unitand optionalMetadata (JSON).
- Set
URL upload
- Set
Source Type = URL. - Provide the
File URL. - Configure
TTL Value,TTL Unitand optionalMetadata (JSON).
- Set
Continue On Fail
When enabled in node Settings, the node does not stop on the first failed item:
- Failed items are returned with
json.errorand maintain a link to the original viapairedItem. - Successful items return the microservice JSON response.
Enable under: Node → Settings → toggle “Continue On Fail”.
Compatibility
Works with n8n 1.60.0+. Newer versions of n8n are recommended.
Resources
- n8n Community Nodes: https://docs.n8n.io/integrations/#community-nodes