sb_media_upload
Upload images to the media library and get back URLs ready for site building. Accepts local paths, URLs, or photo search results to pick and upload multiple at once.
Instructions
Put an image into the media library and get its URL back, ready for sb_set. Takes a local path, a URL, or a SEARCH — query returns real photographs with their own descriptions, and pick uploads the one you chose, or several at once to stock a site you just built. The only way to add an image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Fetched, then uploaded | |
| name | No | ||
| path | No | A file on this machine | |
| pick | No | The id of the search result to upload — or several ids, which stocks a site in one call | |
| query | No | Search real photographs; read the descriptions, then pick | |
| dry_run | No | ||
| site_id | No | ||
| folder_id | No | ||
| orientation | No |