Arguments
Output
The new file, with itsid, one-time upload_url and transfer_key, and the curl -T command that sends its bytes with the transfer key in a Pomerado-Transfer-Key header. Pass the id as a tool’s file field. See Send a file to a run.
Details
Details
Returns the file’s id, a one-time upload_url and its transfer_key: send the file’s bytes there once with an HTTP PUT and the transfer key in a Pomerado-Transfer-Key header, with the curl command the result gives, such as curl -T receipt.pdf -H ‘Pomerado-Transfer-Key: <transfer_key>’ ‘<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. Send the bytes within 15 minutes; three refused uploads close the upload_url, so create a new upload then. A file serves one run, is erased when that run’s job ends, and is erased an hour after its upload 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.