Discourse Extended icon

Discourse Extended

Read and manage Discourse AI artifacts, categories, posts, topics, personal messages, uploads, and Data Explorer queries

Upload → Upload to Object Storage

AI-generated

Summary

Upload a binary file from an incoming item to a provided presigned URL for object storage via an HTTP PUT request.

Inputs

  • Input Data Field Name (required) — The name of the binary property in the incoming item that contains the file to upload.
  • Presigned PUT URL (required) — The presigned URL to which the file will be uploaded via an HTTP PUT request.
  • Content Type — Optional HTTP Content-Type header to override the file's content type during upload.
  • Return Metadata — Boolean to include or omit metadata about the upload in the node's output.

Output shape

a single JSON object per uploaded file containing, optionally, metadata about the upload such as HTTP status and ETag.

If 'Return Metadata' is true, the response includes upload HTTP status, headers, and ETag if provided by the storage service; otherwise, it outputs a minimal success indication. The node expects the binary field specified to contain the file data to upload.

Examples

Example 1: Upload a PDF file binary data to S3 or compatible object storage using a presigned PUT URL.

Set 'Input Data Field Name' to the binary field (e.g., 'data'), provide the presigned URL, optionally specify content type (like 'application/pdf'), and keep 'Return Metadata' enabled to retrieve upload status info in output.

Links

Discussion