Skip to main content
close.uploadFile uploads a Blob to Close and returns the temporary URL required by attachment inputs.
automations/upload-close-file.automation.ts

Inputs

Provide file and filename. Set contentType when the Blob has no media type. Optional second argument { account } selects a named Close binding.

Output

Returns url, filename, contentType, and size. Close upload URLs expire after 24 hours, so use the result in an attachment promptly.