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
import { utapi } from "~/server/uploadthing.ts";
const files = await utapi.listFiles();
console.log(files);