layout_asset_upload
Upload binary layout assets from disk to Voog—favicons, icons, fonts, and images served from /images for templates.
Instructions
Upload a BINARY layout asset from disk — favicon, icon, font, inline image (multipart POST /layout_assets, issue #140 item 4). layout_asset_create only carries text data, so binaries previously needed a raw curl call.
Served from /images/ (or the site's asset path), not /photos — these live with the templates, not in the media library. For photos referenced from content or site.data use asset_upload instead.
Voog derives asset_type and content_type from the file; the result is editable=false (no text body to edit). Uploading the same filename again creates a SECOND asset — delete the old one, or use asset_replace semantics, if you meant to replace it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| filename | No | Filename to store it under (default: the local file's own name) | |
| file_path | Yes | Absolute path to the local file (.eot, .gif, .ico, .jpeg, .jpg, .otf, .pdf, .png, .svg, .ttf, .webp, .woff, .woff2) |