put_media
Adds a file to the library from a URL — the BROWSER fetches it, so nothing travels through this connection, but it only works on https hosts that send CORS headers. TO UPLOAD A FILE YOU ALREADY HAVE ON DISK, DO NOT USE THIS: run curl -X POST --data-binary @FILE 'BRIDGE/media/upload?token=TOKEN&name=NAME' from your shell instead (up to 10 MB). Reading a file into data costs hundreds of thousands of tokens for something curl streams for free; data is for small generated assets only.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | http(s) URL for the browser to fetch. | |
| data | No | Base64 bytes, for small assets. | |
| name | Yes | Filename, including extension. | |
| token | Yes | The session token that connect returned. | |
| folder | No | Folder to put it in. Omit for the root. |