# veryfront__create_upload_from_url

Download a file from an HTTP(S) URL on the server and store it as a project upload. Requires project.uploads.write.

Risk: mutating.

## Arguments

| Name                  | Type    | Required | Description                                                                                            |
| --------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------ |
| `url`                 | string  | Yes      | HTTP(S) URL to download. Private and internal addresses are refused; at most 5 redirects are followed. |
| `path`                | string  | Yes      | Project-relative destination path, for example attachments/invoice.pdf. Do not URL-encode it.          |
| `headers`             | object  |          | Request headers for the download, for example Authorization. Hop-by-hop headers are rejected.          |
| `content_type`        | string  |          | MIME type override. Defaults to the response Content-Type, else application/octet-stream.              |
| `expected_size_bytes` | integer |          | Exact size in bytes the download must have; a different size fails the import.                         |
| `max_bytes`           | integer |          | Largest download accepted, in bytes. Defaults to 104857600 and is capped at 536870912.                 |
| `project_reference`   | string  |          | Project UUID, slug or configured domain; optional when the selected context supplies a project.        |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_upload_from_url",
    "arguments": {
      "url": "<url>",
      "path": "<path>"
    }
  }
}
```
