Create an upload
create_uploadGet somewhere to put a local file — the right choice for ANY file that is not already at a URL, whatever its size. Say what the file should become in output_format: the conversion then starts on its own the instant the person sends the file, and collecting the result is all that is left. Returns an import_id plus two ways to deliver the bytes: a link to show the person so they upload from their own browser (use this when your own network cannot reach convert.online or storage), or a URL to PUT the bytes to yourself. Then call convert with the import_id to collect the result; it waits for the file to arrive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Name of the file being uploaded, e.g. "photo.jpg" — the source format is taken from it. | |
| input_format | No | Source format, if the file name does not carry a usable extension. | |
| output_format | Yes | What the file should become, e.g. "png". Required: with it the conversion starts by itself when the file arrives, so nothing depends on a later call. |