upload-file-from-url
Fetch a remote file by URL and upload it to the wiki's File namespace. The upload appears in the upload log and returns the file title and URL.
Instructions
Fetches a file from a remote web URL and uploads it into the wiki's File namespace, returning the resulting file title and URL. The upload appears in the wiki's upload log. Requires the wiki to have upload-by-URL enabled; if it is disabled, download the file locally and use upload-file instead. Fails if a file with the target title already exists. To replace an existing file with a new revision, use update-file-from-url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the file to upload | |
| title | Yes | File title (with or without the "File:" prefix) | |
| text | Yes | Wikitext on the file page | |
| comment | No | Reason for uploading the file |