Get a list of all files in UploadThing

I looked through some of the documentation for UploadThing, and I see how to upload a file, but what about downloading or getting a list of all the files that are uploaded?
Solution
Nevermind it was in https://docs.uploadthing.com/api-reference/ut-api#listfiles
import { utapi } from "~/server/uploadthing.ts";
const files = await utapi.listFiles();
console.log(files);
Docs for the best file uploader to date
Ut API – uploadthing
Was this page helpful?