Upload media into your Soclo library
soclo_mediaUpload media from a public https:// URL into your Soclo Library for use with soclo_post_publish. Pass url, optional filename and contentType (image/* or video/); Soclo fetches, validates and stores the file and returns the owned assetId (also searchable via soclo_library_search). Pass a stable requestId so retries return the same asset without uploading twice; reusing a requestId with different content is refused, a failed attempt replays its named error (use a new requestId to try again), and re-uploading the same URL reuses the existing copy. Refuses non-https URLs, IP literals, localhost, private/internal networks (including redirects), files over 50 MB, and bytes that do not match the declared image/ or video/* contentType. Needs publish:post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A public https:// URL to the media file. | |
| filename | No | Defaults to "upload" if omitted. | |
| requestId | No | Stable id for this exact upload. REUSE it on a retry so the media is never uploaded twice. Omit to have Soclo derive one from the source. | |
| contentType | Yes | Must be image/… or video/…, e.g. image/jpeg or video/mp4, and must match the file’s real bytes. |