Upload Thing Get All Files

I read the documentation and i have to say i dont quite understand if its possible and how to get all the files.
1 Reply
webdevkaleem
webdevkaleem3mo ago
you are expected to be storing the URLs or file keys in your own DB. however you can use .listFiles to get all the files in your uploadthing app (not recommended for most stuff though) - https://docs.uploadthing.com/api-reference/ut-api#list-files
UTApi - UploadThing Docs
TypeScript SDK for consuming the UploadThing REST API.

Did you find this page helpful?