Create an upload
create_uploadGet a target URL to put a local file and start its conversion: specify output format, PUT the file bytes, then collect the result using the import ID.
Instructions
Get 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 file arrives, and collecting the result is all that is left. Returns an import_id plus a URL to PUT the bytes to. 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". With it the conversion starts by itself when the file arrives. |