Folders in UploadThing
Hi Guys
I've seen that folders are on the roadmap under "this year". Any idea what that means? I would really like to implement uploadthing as storage provider in my multi tenant payload cms app but to make this work I would need a way to see how much storage every tenant uses. What would be the way to work around before folders are available?
2 Replies
Yeah that is a feature really missing. I wish it was there
i think
folders
would mean that we can point files
to a folder
and store the folder.key
in our db
to be used later
upon usage we can list all the files
inside the folder
instead of storing all the files.keys
. CRUD operations basically
i could be wrong about that
as for a solution, uploadthing expects you to store the image key
or url
in your own db to be referred later for extraction
you'll have to store the total storage usage and file keys / data yourself
mark answered this questions here as well
https://discord.com/channels/966627436387266600/1345368454525620305/1345498851917692979