upload-file-from-url
Fetches a file from a remote URL and uploads it to the wiki's File namespace. Use to add new files when upload-by-URL is enabled.
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 |