Is it necessary to have backend to upload pdfs, in uploadthing ???

i am thinking of only using frontend to upload pdfs and catch the url given by the upload thing and save it in the database. i am using .net as the backend so any recommendation???
7 Replies
EnderTheNetrunner
UploadThing is designed as an abstraction that leverages JS meta-frameworks. Unless you're willing to dig into the source code and figure out how to listen for those webhooks, simulate them locally, and also replicate the client-side code, you're probably better off just finagling S3.
B1tWise
B1tWise6d ago
These uploadthing docs have pretty good guidance about how to implement your own backend endpoints if they don't support the language you need. It seems like you just need to implement GET/POST /api/uploadthing endpoints on your .net backend, and then you should be able to get uploadthing working
Uploading Files - UploadThing Docs
Uploading files is the first step in the process of uploading files to UploadThing. This page explains the general process of uploading files and how you can use the UploadThing API to upload files. There are two ways to upload files to UploadThing:
EnderTheNetrunner
I completely missed that, whoops! Thanks @B1tWise
Sandip
SandipOP5d ago
thanks thanks
Betrayy
Betrayy4d ago
Once you catch the url given by uploadthing in the frontend, pass it to an endpoint in your .NET backend so you can save it to the database
Betrayy
Betrayy4d ago
Unless I misunderstood your question there... if you want to directly interact with uploadthing in your backend, you can look at the openapi spec, and use a .NET openapi gen to generate client code
OpenAPI Specification - UploadThing Docs
The UploadThing REST API specification for developers building SDKs
Sandip
SandipOP2d ago
Yeah I am just trying to save the link in the backend

Did you find this page helpful?