Back to WordPress
Connect Knoon AI with WordPress to automate AI workflows.
Download a file from a URL and upload it to WordPress media library.
wordpressXmlRpcDefaultDefaultUploadFromURL
BETA
Permissions
There are no items to display.
Optional permissions
There are no items to display.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| fileUrl | mustache | Public file URL to fetch and upload. | Yes |
| fileName | mustache | Optional file name override. | No |
| title | mustache | Optional media title. | No |
| altText | mustache | Optional media alt text. | No |
| caption | mustache | Optional media caption. | No |
| description | mustache | Optional media description. | No |
Returns
| Name | Type | Description |
|---|---|---|
| status | string | UPLOADED when successful. |
| mediaId | string | WordPress media ID. |
| sourceUrl | string | Public media URL. |
| mimeType | string | Media MIME type. |
| fileName | string | Media file name. |
| title | string | Media title. |
| altText | string | Media alt text. |
| caption | string | Media caption. |