UploadThing + Convex: Any working HTTP Action API integration example?
I’m trying to integrate UploadThing with Convex using an HTTP Action API, but I can’t find a clear working example.
- Has anyone here successfully set up UploadThing file uploads through a Convex HTTP action?
- If yes, could you share a minimal working example (server + client) of how you wired them together?
I’m mainly struggling with the request/response flow between UploadThing and Convex, so any code snippets or pointers would be super helpful 🙏
4 Replies
Hey there, Here is a PR I was working on with the implementation mostly done. It's not exactly what you asked for but you can probably extract the code out of it and use it in your project.
GitHub
feat: Add Convex Adapter by IslamIhab · Pull Request #1235 · ping...
Summary
This PR adds Convex adapter.
This repo is an example for how to implement it.
It was highly inspired from PR feat: add Convex adapter #929.
New Convex adapter entrypoints
packages/uploadt...
thanx its working
just curious: why not leverage convex’s bucket storage?
@Nate upload thing is cheaper since there is no ingress/egress costs. That’s why I’m using it.