Filter/search files in uploadthing REST API
I'm building a tiny wrapper around the uploadthing REST API.
You can list files with the
listFiles
endpoint, but it doesn't seem to accept any type of params for filtering.
Since there's a search bar in the uploadthing files overview, I thought there would be a way to also filter files via API.
I could fetch all files and filter them myself, but that seems inefficient.
Is this some hidden feature or is there maybe a workaround I could implement? Thanks!0 Replies