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 ```js import { utapi } from "~/server/uploadthing.ts"; const files = await utapi.listFiles(); console.log(files);...
Ut API – uploadthing
Docs for the best file uploader to date
Jump to solution
1 Reply
Solution
DrizzyDrake
DrizzyDrake10mo ago
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);
import { utapi } from "~/server/uploadthing.ts";
const files = await utapi.listFiles();
console.log(files);
Ut API – uploadthing
Docs for the best file uploader to date
Want results from more Discord servers?
Add your server