upload_asset_from_url
Import files from web URLs directly into LightCMS as assets. Fetch images or documents from public URLs and store them without local downloads. Specify serve paths or use auto-generated filenames.
Instructions
Fetch a public URL and store it as a LightCMS asset. Useful for importing images or files from the web without downloading them locally first.
Example: {"url": "https://example.com/logo.png", "serve_path": "/assets/logo.png", "description": "Site logo"}
If serve_path is omitted, the filename is derived from the URL. Returns id, serve_path, mime_type, and size.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | No | Optional description | |
| serve_path | No | URL path where asset will be served (e.g. /assets/logo.png). Auto-derived from URL filename if omitted. | |
| url | Yes | Public URL of the file to fetch (must be http or https),required |