Assets: Files in Your Cluster
Assets are files stored on the cluster. A file in the public folder is served to everyone under /static/. Anywhere else it has no URL at all, and only your blueprints can read it.
Assets are available on every node and domain
Blueprints run on multiple nodes in various regions, so keeping a file next to one node does not work. Assets make every uploaded file available to all your blueprints and all your connected domains, with automatic storage and security measures.
- Public assets live in the
publicfolder. They are served over HTTP from every connected domain under the/static/path, with no login or token. - Private assets live anywhere except the
publicfolder. They are never served directly over HTTP. Only your blueprints can read them, so you decide who gets access.
Typical uses are images and fonts for your pages, downloadable files such as exports and invoices, and generated reports you want to keep behind a login.
/static/ maps to the root of the public folder. In the file tree below, the stylesheet is served at /static/styles/mobile.css, while the report in system_assets has no public URL at all.
Upload in RUAL Studio under Manage Assets
The Manage Assets section in RUAL Studio is where you organize folders, upload files and inspect what is stored on the cluster.
Open Manage Assets
You see the asset folder tree, including the
publicfolder, and the files inside the selected folder.Select a folder
Pick the folder to upload to, or create a new subfolder first. Anything placed inside
publicbecomes publicly available.Click Upload
Pick one or more files from your device.
Confirm the upload
The files appear in the file list and are stored on the cluster immediately.
Check the file
Select an uploaded file to open its detail view, where you can review the metadata and, for public assets, copy the
/static/URL.
public folder is world-readable on every connected domain. Never store files containing personal data, credentials or other sensitive content there. Keep those in a private folder and serve them through a scoped blueprint, as described in Serving Protected Files. Script uploads and housekeeping through the API
The cluster ships asset APIs under the System Assets category. All of them require an access_token (see Getting Access), and the token's user needs the matching scope: assets_create to upload and search, assets_remove to delete.
| Endpoint | Purpose | Required scope |
|---|---|---|
POST /api/v1/_system/assets/stream |
Upload a file with streaming support (max 500MB) | assets_create |
POST /api/v1/_system/assets/search |
Search and list uploaded assets | assets_create |
DELETE /api/v1/_system/assets/{guid} |
Delete an asset from filesystem and database | assets_remove |
Uploading a file
The upload endpoint takes the file as multipart/form-data and the metadata as query parameters:
| Parameter | Required | Description |
|---|---|---|
filename |
yes | Original filename, URL encoded. |
filesize |
yes | File size in bytes; the maximum is 500MB. Larger uploads are rejected with FILE_TOO_BIG. |
directory |
yes | Target directory: public, system_assets or temp. |
filetype |
no | MIME type. When omitted, it is detected from the file extension. |
path |
no | Custom subdirectory below the target directory, URL encoded. |
action |
no | Blueprint action GUID; creates a blueprints subfolder for the upload. |
curl -X POST "https://<cluster-url>/api/v1/_system/assets/stream?filename=mobile.css&filesize=4821&directory=public&path=styles" \
-H "Authorization: Bearer <access_token>" \
-F "file=@mobile.css"{
"assets_guid": "9f8e7d6c5b4a3210",
"name": "mobile.css",
"type": "text/css"
}Keep the returned assets_guid if you want to delete the file later. Uploading to directory=public makes the file available at /static/<path>/<filename> right away; system_assets keeps it private.
Searching assets
The search endpoint accepts a query string with paging, so you can list folders or find a specific file:
{
"limit": 25,
"offset": 0,
"query": "logo"
}Set "count": true to get the number of matching assets instead of the results. limit defaults to 50 and accepts up to 1000.
Deleting an asset
curl -X DELETE "https://<cluster-url>/api/v1/_system/assets/9f8e7d6c5b4a3210" \
-H "Authorization: Bearer <access_token>"A successful delete returns the removed guid; an unknown guid returns 404. The full request and response schemas live under System Assets APIs.
The public folder decides everything
| Public | Private | |
|---|---|---|
| Location | The public folder (API: directory=public) |
Any folder outside public (API default: system_assets) |
| URL pattern | https://<cluster-url>/static/<path> on every connected domain |
No direct URL: readable only by blueprints |
| Who can access | Everyone, without login or token | Only the flows you build; gate them with *loggedin or custom scopes |
| Typical use | Images, stylesheets, fonts, public downloads | Internal documents, user-specific exports, reports |
A file inside public is public no matter what. A file outside it can never be reached by URL guessing, because the /static/ path only maps into public.
Serve a private file from a flow behind a scope
Add an entry block
An API endpoint such as
on_startup_register_uri_get, or aweb_page.Load the file
Use the
get file from assetsblock with the asset's path, and branch on itssuccesspin.Reply with it
Wire its
filepin tohttpconnection_set_file(reply with file), with the connection fromhttpconnection_current_request.Set the scope
Click the lock icon on the entry block and assign
*loggedinfor any logged-in user, or a custom scope such asreports. See Remote Access Control for the full tutorial, including what a refused visitor gets.
For downloads straight from the browser: an <a> tag cannot set an Authorization header, so pass the token in the URL with ?access_token=<token>. Tokens are valid for 14 days and extend automatically while actively used. All five ways to provide a token are in Adding tokens to your requests.
The get file from assets block brings a file into a flow
The get file from assets block (type file_from_assets, searchable by its alias assets, introduced in v10.4.28) takes a local path and hands you a file for other file blocks or an API response.
| Pin | Type | Holds |
|---|---|---|
In-pin: asset path (required) | value | The local path to the asset, e.g. /public/images/image.png, or a private path outside the public folder. |
Out-pin: success | condition | Whether the asset exists. |
Out-pin: file | file | The file itself. |
Out-pins: name, type, size | value, value, number | The filename, the asset type, and the size in bytes. |
A web template refers to a public asset directly through its /static/ URL, with no block: <img src="/static/images/logo.webp" alt="">. The block earns its place with private files: it is the only way to pull them into a flow, which is what keeps them protected.
Group folders by purpose and name them for URLs
- Group by purpose, not by date or uploader:
public/styles,public/images,public/downloadsfor public files, and folders likereportsorexportsnext topublic, never inside it, for private ones. - Name for URLs. Use lowercase names with hyphens instead of spaces. Folder and file names below
publicbecome part of the/static/URL verbatim. - Remember the prefix mapping.
public/styles/mobile.cssis served as/static/styles/mobile.css. Thepublicsegment itself never appears in the URL. - Keep user-generated content out of public unless it is genuinely meant for everyone. Move it through a scoped blueprint instead.
File size, formats and performance
- Size limit. The upload API accepts up to 500MB per file and rejects larger ones with
FILE_TOO_BIG. For anything near that limit, prefer the streaming endpoint over base64-style uploads. - Image formats. Serve images as
webp: dramatically smaller than PNG or JPEG at the same quality. Thefunction_image_to_webpandfunction_resize_imageblocks convert and resize images in a flow, so you can normalize user uploads before storing them. - Documents. Distribute documents as PDF; it renders consistently on every device and browser.
- Immutable URLs. Public assets are ideal CDN and browser-cache candidates because every connected domain serves the same bytes. Give files that change a version in the filename,
app.v3.cssinstead ofapp.css, so clients can cache each version aggressively and you never wait for stale caches to expire. Upload the new name and point your templates at it.
Probe and thumbnail inline, compress in the queue
Storing a video as it arrived is usually the wrong move: a phone clip is often twenty times larger than it needs to be, and serving it as uploaded costs bandwidth on every view. Three blocks cover the normal pipeline. Two are cheap and one is not.
| Block | What it does | Where it runs |
|---|---|---|
video_probe |
Reads width, height, duration, size and whether the file has an audio track. It reads the file's own header rather than its contents, so nothing is decoded. | Inline, in milliseconds |
video_thumbnail |
Writes one frame out as a JPEG poster image. Pick the timestamp; a timestamp past the end of the clip falls back to the midpoint rather than failing. | Inline: it decodes a single frame, not the file |
video_compress |
Re-encodes the video, optionally scaling, capping the bitrate and trimming to a range. Presets cover the normal message-media sizes; every setting can be overridden individually. | The queue, as a background job |
Probe first and branch on the answer. A clip already inside your limits does not need re-encoding, and skipping the compression job is always faster than running a good one.
- Compression is a queue job, not a step. The block hands you the job id and the path the output will appear at, and the flow continues. Wire the
on_complete_functionandon_error_functionout-pins to react to the outcome; both fire whether or not the flow waited. - Waiting in the flow is available and rarely what you want. Setting
wait_in_flowblocks until the encode finishes and fills in the output dimensions, duration and size. It is convenient in a scheduled job and a poor idea in a request, where a user waits on a page while a video transcodes. Give it a timeout when you do use it. - The result out-pins are empty unless you waited. Width, height, duration, size and success are populated by the job, so a flow that did not wait reads them from the callback instead.
- Both file pins take either shape. A file object from another file block, or a path relative to the entity root. Thumbnails written below
publicare servable straight from the/static/URL. - Trim to enforce a maximum length, do not check afterwards. The start and duration pins cut the clip as part of the encode. Without them a twenty-minute upload is transcoded in full and can only be rejected once the work is already done.
- Pass context through rather than storing it. The
passthroughin-pin is handed to the callback verbatim, which is how the completion function knows which document the clip belonged to.
Next steps
Remote Access Control Gate pages and APIs behind *loggedin or custom scopes. System Assets APIs Full request and response schemas for the asset upload, search and delete endpoints. get file from assets Pin reference for the block that loads cluster assets into a blueprint.Frequently asked
How do I serve a file from RUAL?
Upload it as an asset in RUAL Studio or through the asset APIs. Public assets are served from the /static/ path, and private assets stay behind scopes so only authorised callers can fetch them.


