Skip to main content

Arguments

Output

The new file, with its id and one-time upload_url, and the curl -T command that sends its bytes. Pass the id as a tool’s file field. See Send a file to a run.
Returns the file’s id and a one-time upload_url: send the file’s bytes there once with an HTTP PUT and no Authorization header, for example curl -T receipt.pdf ‘<upload_url>’, then pass id as the file field’s value. The file must be at most 25 MiB unless the deployment says otherwise, its first bytes must match media_type, and executables are refused. A file serves one run, is erased when that run’s job ends, and is erased after an hour if unused. A file field also takes an https URL or a data: URI of at most 512 KB instead.Effect: May change a website or your account.