How to Upload File to UploadThing in N8N


How to Upload Files to UploadThing in N8N

No official n8n node for UploadThing exists. I spent an hour looking for workarounds before figuring out the actual solution.

Here's what works instead:

The Setup

You need two things:

  1. A Code node that generates a presigned URL
  2. An HTTP Request node that uploads your file to that URL

Step by Step

1. Get your API key from UploadThing platform settings.

2. Add a Code node with the JavaScript below.

This generates the presigned URL for the actual upload.

3. Add an HTTP Request node

Point it to the URL generated by the Code node.

U3oPzBgzb2LN72sbGNYz9Abpq1CIcRT6hBHXVG5KYPJrEniD

That's it. No custom integrations, no community nodes to maintain, no waiting for official support.

The presigned URL approach works because UploadThing uses standard S3-compatible uploads under the hood.

U3oPzBgzb2LNbKbL0wilcEQuWSxw5JiCvqRFV0mabZoYA73X


This article was originally published on https://craftengineer.com/. It was written by a human and polished using grammar tools for clarity.
--

Follow me on X (Formally, Twitter). Or read my stories on engineering management, and how to be a better engineering leader on Vibe Manager Blog.